diff --git a/status/status.ino b/status/status.ino index 90bd397..3fbc8c6 100644 --- a/status/status.ino +++ b/status/status.ino @@ -56,9 +56,20 @@ void setup() { pinMode(LED_Y, OUTPUT); pinMode(LED_R, OUTPUT); Serial.begin(9600); + testLeds(); setStateOnLeds(); } +// Schaltet alle LEDs nacheinander an +void testLeds() { + digitalWrite(LED_R, HIGH); + delay(1000); + digitalWrite(LED_Y, HIGH); + delay(1000); + digitalWrite(LED_G, HIGH); + delay(1000); +} + // bildet den aktuellen Zustand auf die LEDs ab void setStateOnLeds() { digitalWrite(LED_R, (state == STATE_OFF));