From d128dad3dc2f43a5ea5b0f99537acd65e23f4d46 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 20 Jun 2018 13:32:00 -0700 Subject: [PATCH] Startup sequence (#696) * set light, play sound, show eyes, wait, clear screen, light * play a sound, turn on lights --- libs/ev3/startup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ev3/startup.ts b/libs/ev3/startup.ts index 94ee19d3..59076fc2 100644 --- a/libs/ev3/startup.ts +++ b/libs/ev3/startup.ts @@ -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);