pas besoin de FastLED.show + FastLED.delay, le second fait déjà show()

This commit is contained in:
Julien Cabillot
2017-03-06 13:56:19 +01:00
committed by JC
parent 159ab28b76
commit ea42471308

View File

@@ -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);
}