do a single green pulse when starting

This commit is contained in:
Peli de Halleux 2018-06-20 15:21:09 -07:00
parent 1368ee824b
commit 97215e894a

View File

@ -1,9 +1,8 @@
// This is the last thing executed before user code // This is the last thing executed before user code
// We pause for 100ms to give time to read sensor values, so they work in on_start block
pause(100)
// pulse green, play startup sound, turn off light // pulse green, play startup sound, turn off light
brick.setStatusLight(StatusLight.GreenPulse); brick.setStatusLight(StatusLight.GreenPulse);
music.playSoundEffectUntilDone(sounds.systemStartUp); // We pause for 100ms to give time to read sensor values, so they work in on_start block
pause(400)
// and we're ready
brick.setStatusLight(StatusLight.Off); brick.setStatusLight(StatusLight.Off);