From 5de12c41bbfd4d1f7697292695ee7c1d8853a0d8 Mon Sep 17 00:00:00 2001 From: Martin Ness Date: Thu, 24 Sep 2015 13:58:16 +0200 Subject: [PATCH] LED test runtime --- status/status.ino | 11 +++++++++++ 1 file changed, 11 insertions(+) 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));