diff --git a/mqttfastledmenu.ino b/mqttfastledmenu.ino index 40874ae..b113763 100644 --- a/mqttfastledmenu.ino +++ b/mqttfastledmenu.ino @@ -134,7 +134,6 @@ void ledBlackAll() { FastLED.clear(); FastLED.show(); - FastLED.delay(1000 / speed); } void ledCylon() @@ -149,10 +148,8 @@ void ledCylon() } leds[i] = color; - FastLED.show(); FastLED.delay(1000 / speed); leds[i] = CRGB::Black; - FastLED.show(); FastLED.delay(1000 / speed); } @@ -165,7 +162,6 @@ void ledCylon() } leds[i] = color; - FastLED.show(); FastLED.delay(1000 / speed); leds[i] = CRGB::Black; FastLED.show(); @@ -182,15 +178,13 @@ void ledError() leds[i] = color; } } - - FastLED.show(); + FastLED.delay(1000 / speed); } void ledFullColor() { fill_solid(leds, LED_NUM, color); - FastLED.show(); FastLED.delay(1000 / speed); }