UNPKG

johnny-five

Version:

The JavaScript Arduino Programming Framework.

14 lines (9 loc) 261 B
var five = require("../lib/johnny-five.js"), board, led; board = new five.Board(); board.on("ready", function() { // Create a standard `led` hardware instance led = new five.Led(13); // "strobe" the led in 100ms on-off phases led.strobe(100); });