Skip to content

Instantly share code, notes, and snippets.

@voodootikigod
Created April 12, 2013 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voodootikigod/5374512 to your computer and use it in GitHub Desktop.
Save voodootikigod/5374512 to your computer and use it in GitHub Desktop.
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