var five = require("johnny-five"); var board = new five.Board(); board.on("ready", function() { var led = new five.Led(13); led.blink(500); });
var five = require("johnny-five"); var board = new five.Board(); board.on("ready", function() { var led = new five.Led(13); led.blink(500); // <= <3 <3 });
var five = require("johnny-five"); var board = new five.Board(); board.on("ready", function() { var led = new five.Led(13); led.blink(500); // <= ?? });
setInterval(function() { this.toggle(); }.bind(this), rate);
setInterval(function() { this.toggle(); // <= ?? }.bind(this), rate);
// turn on this.value = 255; this.write(); // turn on this.value = 0; this.write();
// turn on this.value = 255; // <= brightness this.write(); // turn on this.value = 0; // <= brightness this.write();
// turn on this.value = 255; this.write(); // <= ?? // turn on this.value = 0; this.write(); // <= ??
// turn on this.value = 255; this.write(); // <= ?? // turn on this.value = 0; this.write(); // <= ??
// on new Buffer([237, 127, 1]) // off new Buffer([237, 0, 0])
// on serialPort.write(new Buffer([237, 127, 1])) // off serialPort.write(new Buffer([237, 0, 0]))
> ls node_modules
> console.log('thank you');