Example using Johnny-Five + Edison-IO to directly control an Intel Edison

LED on pin 1

led-1-edison-miniboard.png

Fritzing diagram: led-1-edison-miniboard.fzz

 

Run this example from the command line with:

node eg/edison-io-miniboard.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(1);
  led.blink();
});


Illustrations / Photos

Intel Edison Mini Board

edison-mini-board.jpg

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

 

Component Classes in this example:

Hi! The Johnny-Five community is building new projects every day. We made this newsletter to tell you about what's new, what's good, and what's next for Open Source robotics. Join us in exploring what we can make together.

Fork me on GitHub