Created
January 17, 2014 22:23
-
-
Save joedougherty/8482780 to your computer and use it in GitHub Desktop.
Node version of Notifier
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 growl = require('growl'); | |
var five = require('johnny-five'), | |
board, button; | |
board = new five.Board(); | |
board.on("ready", function() { | |
button = new five.Button(8); | |
board.repl.inject({ | |
button: button | |
}); | |
button.on("down", function() { | |
growl('Someone wants to speak with you!'); | |
console.log('down'); // debug | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment