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!

10 lines (7 loc) 219 B
var five = require("../lib/johnny-five.js"); new five.Board().on("ready", function() { // var servo = new five.Servo("O0"); new five.Sensor("I2").on("change", function() { console.log(this.boolean); }); });