pcDuino-IO is an IO-Plugin class for writing Node.js programs with Johnny-Five that run on the pcDuino3. This project was built at Bocoup
pcDuino-IO scripts are run directly from the pcDuino3 (or similar in family) board. Assuming your pcDuino has already been setup for networking, getting started is easy:
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-arm-pi.tar.gz
tar xvzf node-v0.10.24-linux-arm-pi.tar.gz
cd node-v0.10.24-linux-arm-pi
sudo cp -R * /usr/local
npm init; # follow the prompts
npm install johnny-five pcduino-io --save
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();
});
- See Johnny-Five's API for information!
- See Johnny-Five's examples for inspiration!
See LICENSE file.