From ea42471308a4584fe91e80cb06f19303ad098f6a Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Mon, 6 Mar 2017 13:56:19 +0100 Subject: [PATCH] =?UTF-8?q?pas=20besoin=20de=20FastLED.show=20+=20FastLED.?= =?UTF-8?q?delay,=20le=20second=20fait=20d=C3=A9j=C3=A0=20show()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqttfastledmenu.ino | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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); }