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!

15 lines (11 loc) 249 B
var five = require("../lib/johnny-five.js"); var board = new five.Board(); board.on("ready", function() { var button = new five.Button({ pin: 7, holdtime: 100 }); button.on("hold", function() { console.log("Hold..."); }); });