UNPKG

johnny-five

Version:

The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, Raspberry Pi, Spark Core, TI Launchpad and more!

23 lines (20 loc) 433 B
var five = require("../lib/johnny-five.js"); var Raspi = require("raspi-io"); var board = new five.Board({ io: new Raspi() }); board.on("ready", function() { var led = new five.Led("P1-13"); led.blink(); }); // @markdown // // In order to use the Raspi-IO library, it is recommended that you use // the Raspbian OS. Others may work, but are untested. // // ```sh // npm install johnny-five raspi-io // ``` // // // @markdown