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!

12 lines (9 loc) 277 B
var five = require("../lib/johnny-five.js"); var board = new five.Board(); // The board's pins will not be accessible until // the board has reported that it is ready board.on("ready", function() { console.log("Ready!"); var led = new five.Led(13); led.blink(500); });