Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (31 sloc) 897 Bytes

Board - Basic Initialization

LED on pin 13 (Arduino UNO)

LED inserted directly into pin 13

docs/breadboard/led-13.png

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

 

License

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