Skip to content

Instantly share code, notes, and snippets.

@dan-mckay
Created April 15, 2013 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-mckay/5391312 to your computer and use it in GitHub Desktop.
Save dan-mckay/5391312 to your computer and use it in GitHub Desktop.
"Hello World" for johnny-five Node.js Module
var five = require("johnny-five"),
board = new five.Board();
board.on("ready", function() {
// Create an Led on pin 9 and strobe it on/off
// Optionally set the speed; defaults to 100ms
(new five.Led(9)).strobe();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment