- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I was not able to run any of the JavaScript or Python examples for other languages:
Home › Documentation › Next Steps: Create Applications with DevKit › Analog I/O Basics › Sample Code
Then by experimenting, I changed the line in the JavaScript example
var m = require("mraajs");
to
var m = require("mraa");
and it works OK.
Same thing in the Python example. I changed the line:
import pymraa
to
import mraa
and it runs OK.
Are these references to mraajs and pymraa just an error in documentation, or am I missing something?
I am running these directly on the Edison from its Linux command line.
- Balises:
- Internet of Things
Lien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks Marvin. You are right, the documentation needs to be updated.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thank you indeed. I've fixed the samples. Let us know if you find any other broken sample.
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable