Startup sequence (#696)

* set light, play sound, show eyes, wait, clear screen, light

* play a sound, turn on lights
This commit is contained in:
Peli de Halleux 2018-06-20 13:32:00 -07:00 committed by GitHub
parent 3d7ebeb7b7
commit d128dad3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,3 +2,8 @@
// 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
brick.setStatusLight(StatusLight.GreenPulse);
music.playSoundEffectUntilDone(sounds.systemStartUp);
brick.setStatusLight(StatusLight.Off);