Basic Board initialization

LED on pin 13 (Arduino UNO)

Basic example with LED inserted directly into pin 13

docs/breadboard/led-13.png

Fritzing diagram: docs/breadboard/led-13.fzz

 

Run 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);
});

 

License

Copyright (c) 2012, 2013, 2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2014, 2015 The Johnny-Five Contributors Licensed under the MIT license.