Skip to content

Instantly share code, notes, and snippets.

@sofroniewn
Created February 17, 2016 20:17
Show Gist options
  • Save sofroniewn/511a40bc859c371e5c5b to your computer and use it in GitHub Desktop.
Save sofroniewn/511a40bc859c371e5c5b to your computer and use it in GitHub Desktop.
Testing board close with johnny-five
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