Created
May 8, 2015 11:26
-
-
Save taktran/76ee6b97e7cc54c6cb20 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
"use strict"; | |
function CustomCode(Button0) { | |
if (Button0) { | |
var startTime = 0; | |
var getReadyTime = 500; | |
var goTime = 1500; | |
var endTime = 2500; | |
this.sendTo('RGBLED0', [50,0,0], startTime); | |
this.sendTo('RGBLED0', [50,50,0], getReadyTime); | |
this.sendTo('Vibrator0', 30, getReadyTime); | |
this.sendTo('RGBLED0', [0,50,0], goTime); | |
this.sendTo('Vibrator0', 100, goTime); | |
this.sendTo('RGBLED0', [0,0,0], endTime); | |
this.sendTo('Vibrator0', 0, endTime); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment