Created
October 30, 2015 18:12
-
-
Save alexUXUI/92c3bf89d67e394f6046 to your computer and use it in GitHub Desktop.
Blink an LED using the johnny-five library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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