Created
December 27, 2014 01:30
-
-
Save gsantiago/dc3289ba8356b33f85f3 to your computer and use it in GitHub Desktop.
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 lcd; // Declare a variável LCD aqui pra ser acessível por outras funções | |
var onArduinoReady = function () { | |
// Quando o arduino tiver pronto | |
// ... | |
lcd = new QualquerCoisa(); | |
lcd.on('ready', onLcdReady); | |
}; | |
var onLcdReady = function () { | |
// ... | |
mostraLcd() | |
}; | |
var mostraLcd = function () { | |
// ... | |
// Objeto lcd estará acessivel aqui | |
}; | |
arduino.on('ready', onArduinoReady) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment