Created
February 17, 2016 20:17
-
-
Save sofroniewn/511a40bc859c371e5c5b to your computer and use it in GitHub Desktop.
Testing board close with johnny-five
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"), | |
| board = new five.Board(); | |
| board.on("ready", function() { | |
| console.log('Board ready') | |
| var led = new five.Led(12); | |
| led.on() | |
| }); | |
| board.on("close", function () { | |
| console.log('Board closed') | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment