UNPKG

johnny-five

Version:

The JavaScript Arduino Programming Framework.

20 lines (15 loc) 361 B
var five = require("../lib/johnny-five.js"); var Spark = require("spark-io"); var board = new five.Board({ io: new Spark({ token: "6900a942690cd885603457e5c180e784409ebd44", deviceId: "53ff6f065067544840551187" }) }); board.on("ready", function() { var led = new five.Led("D7"); led.strobe(1000); this.repl.inject({ led: led }); });