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!

16 lines (13 loc) 269 B
var five = require("johnny-five"); var Edison = require("galileo-io"); var board = new five.Board({ io: new Edison() }); board.on("ready", function() { console.log("ready"); var led = new five.Led(11); led.blink(); this.repl.inject({ led: led }); });