Hallo, ich mache mir mit Arduino und einer Infrarot Fernbedienung selbst einen LED Streifen. Für die einzelnen Knöpfe der Fernbedienung benutze ich SWITCH CASE. Wenn ich mehrere Farben blinken lassen will, dann stoppt er immer bei der letzten Farbe und loopt nicht. Kann mir jemand helfen, wie ich in den Case einen Loop bekomme?
Ich bedanke mich jetzt schon mal im Vorraus ;)
case 0x24388C91: //Alle Farben blinkend
strip.fill(strip.Color(250,250,250),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(250,0,0),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(250,0,125),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(250,0,250),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(125,0,250),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(0,125,250),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(0,250,250),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(0,250,125),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(0,250,0),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(125,250,0),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(250,250,0),0,100);
strip.show();
delay(500);
strip.fill(strip.Color(250,125,0),0,100);
strip.show();
delay(500);
}