Created
November 6, 2015 19:17
-
-
Save jmgrosen/02e9f51bf4bb551fc96a to your computer and use it in GitHub Desktop.
This file contains 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 comm = new EasyComm(); | |
var CMD_HOME = 3; | |
var CMD_TOPBALL = 6; | |
comm.addCommand(CMD_TOPBALL, EasyComm.VALUE_BOOL, function(onOrOff) { | |
if (onOrOff) { | |
turnOnIndicator(); | |
} else { | |
turnOffIndicator(); | |
} | |
}); | |
function home() { | |
comm.send(CMD_HOME, true).then(function() { | |
stopBlinking(); | |
}); | |
startBlinking(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment