Created
September 23, 2012 19:45
-
-
Save varunkumar/3772798 to your computer and use it in GitHub Desktop.
Johnny-Five getting started!!
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("johnny-five"), | |
// or "./lib/johnny-five" when running from the source | |
board = new five.Board(); | |
board.on("ready", function() { | |
// Create an Led on pin 13 and strobe it on/off | |
// Optionally set the speed; defaults to 100ms | |
(new five.Led(13)).strobe(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment