Skip to content

Instantly share code, notes, and snippets.

@alexUXUI
Created October 30, 2015 18:12
Show Gist options
  • Save alexUXUI/92c3bf89d67e394f6046 to your computer and use it in GitHub Desktop.
Save alexUXUI/92c3bf89d67e394f6046 to your computer and use it in GitHub Desktop.
Blink an LED using the johnny-five library
var five = require("../lib/johnny-five.js");
var board = new five.Board();
board.on("ready", function() {
var led = new five.Led(13);
// "blink" the led in 500ms on-off phase periods
led.blink(500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment