Example using Johnny-Five + Edison-IO to directly control an Intel Edison
LED on pin 13
Fritzing diagram: led-13-edison-arduinoboard.fzz
Run this example from the command line with:
node eg/edison-io-arduino.js
const { Board, Led } = require("johnny-five");
const Edison = require("edison-io");
const board = new Board({
io: new Edison()
});
board.on("ready", () => {
const led = new Led(13);
led.blink();
});
Illustrations / Photos
Intel Edison Arduino Board
Additional Notes
In order to use the Edison-IO library, you will need to flash the Intel IoTDevKit Image on your Edison. Once the environment is created, install Johnny-Five and Edison-IO.
npm install johnny-five edison-io
Learn More