Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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