Skip to content

Instantly share code, notes, and snippets.

@varunkumar
Created September 23, 2012 19:45
Show Gist options
  • Save varunkumar/3772798 to your computer and use it in GitHub Desktop.
Save varunkumar/3772798 to your computer and use it in GitHub Desktop.
Johnny-Five getting started!!
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