I have been trying to run my hello-worlds.js file on my intel Edison (shown below):
var five = require("johnny-five");
var Edison = require("galileo-io");
var board = new five.Board({
io: new Edison()
});
board.on("ready", function() {
var led = new five.Led(13);
led.blink(500);
});
I have installed Node.js, I also used npm install galileo-io johnny-five and downloaded files to my file directory of folder my-robotics-project. When i execute using node hello-worlds.js, I get the following error:
This OS image is no longer supported.
Please upgrade to IoTkit Image with libmraa0 support
c:\User\Mohamed\my-robotics-project\node_modules\galileo\lib\galileo.js:66
if <Pin.IO.getPlatformType<> === 2> {
TypeError: Cannot read property 'getPlatformType' of undefined
at Object.<anonymous> <c:\User\Mohamed\my-robotics-
project\node_modules\galileo\lib\galileo.js:66:11>
at Module._compile <module.js:435:26>
at Object.Module.extensions..js <module.js:442:10>
at Module.load <module.js:356:32>
at function.Module._load <module.js:311:12>
at Module.require <module.js:366:17>
at require <module.js:385:17>
at Object.<anonymous> <c:\User\Mohamed\my-robotics-project\hello-
worlds.js:2:14>
at Module._compile <module.js:435:26>
at Object.Module._extensions..js <module.js:442:10>