Example using Johnny-Five + pcDuino-IO to directly control a pcDuino3

Run this example from the command line with:

node eg/pcduino-io.js
var five = require("johnny-five");
var pcDuino = require("pcduino-io");
var board = new five.Board({
  io: new pcDuino()
});

board.on("ready", function() {
  var led = new five.Led(13);
  led.blink();
});


Illustrations / Photos

pcDuino3

pcduino.jpg

Additional Notes

In order to use the pcduino-io library, you will need to install node (0.10.x or better) and npm on your pcduino. Once the environment is created, install Johnny-Five and pcDuino-IO. Setup environment

npm install johnny-five pcduino-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