-
-
Save reconbot/fb19742228aaf8c766d6bf2883a6fd3f to your computer and use it in GitHub Desktop.
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"); | |
var board = new five.Board(); | |
board.on("ready", function() { | |
// Create an Led on pin 13 and strobe it on/off | |
var led = new five.Led(13) | |
// Optionally set the speed; defaults to 100ms | |
led.strobe(100); | |
}); |
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
const { Board, Led } = require("johnny-five"); | |
const board = new Board(); | |
board.on("ready", () => { | |
// Create an Led on pin 13 and strobe it on/off | |
const led = new Led(13) | |
// Optionally set the speed; defaults to 100ms | |
led.strobe(100); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment