johnny-five
Version:
Firmata based Arduino Programming Framework.
14 lines (10 loc) • 357 B
JavaScript
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 );
});
});
// @device http://www.tinkerkit.com/servo/
// @device http://www.tinkerkit.com/linear-pot/
// @device http://www.tinkerkit.com/shield/