UNPKG

johnny-five

Version:

Firmata based Arduino Programming Framework.

13 lines (10 loc) 277 B
var five = require("../lib/johnny-five.js"); new five.Board().on("ready", function() { var pin = new five.Pin(5); // Event tests [ "high", "low" ].forEach(function( type ) { pin.on( type, function() { console.log( "Circuit Event: ", type ); }); }); });