Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
1,201 Views

Problem with Examples for Other Languages

I was not able to run any of the JavaScript or Python examples for other languages:

https://software.intel.com/en-us Home ' https://software.intel.com/en-us/intel-software-technical-documentation Documentation ' https://software.intel.com/en-us/next-steps-create-applications-with-devkit Next Steps: Create Applications with DevKit ' https://software.intel.com/en-us/node/519970 Analog I/O Basics ' https://software.intel.com/en-us/node/519980 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.

2 Replies
Highlighted
Honored Contributor I
8 Views

Re: Problem with Examples for Other Languages

Thanks Marvin. You are right, the documentation needs to be updated.

 

Raghu Kona

 

Highlighted
Honored Contributor I
8 Views

Re: Problem with Examples for Other Languages

Thank you indeed. I've fixed the samples. Let us know if you find any other broken sample.

 

Sulamita Garcia