Skip to content

Latest commit

 

History

History
75 lines (39 loc) · 1.19 KB

pcduino-io.md

File metadata and controls

75 lines (39 loc) · 1.19 KB

Led Blink on pcDuino3

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

docs/images/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

 

License

Copyright (c) 2012-2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2015-2019 The Johnny-Five Contributors Licensed under the MIT license.