Created
August 8, 2015 03:39
-
-
Save jkeefe/62ddf3d9b34c1b555b4c to your computer and use it in GitHub Desktop.
This uses Johnny-Five for "hello world" blink function on an Arduino.
This file contains hidden or 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 11 | |
| var led = new five.Led(11); | |
| // default blink rate is 100ms | |
| // otherwise, values are ms | |
| led.blink(100); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment