Basic example with LED inserted directly into pin 13
Fritzing diagram: docs/breadboard/led-13.fzz
Run this example from the command line with:
node eg/board.js
var five = require("johnny-five");
var board = new five.Board();
// The board's pins will not be accessible until
// the board has reported that it is ready
board.on("ready", function() {
console.log("Ready!");
var led = new five.Led(13);
led.blink(500);
});
Copyright (c) 2012, 2013, 2014 Rick Waldron [email protected] Licensed under the MIT license. Copyright (c) 2016 The Johnny-Five Contributors Licensed under the MIT license.