ajout d'un effet de breath sur le full
This commit is contained in:
parent
d407a71ce9
commit
432fd9a720
@ -194,7 +194,9 @@ void ledError()
|
||||
void ledFullColor()
|
||||
{
|
||||
fill_solid(leds, LED_NUM, color);
|
||||
FastLED.delay(1000 / speed);
|
||||
int breath = (exp(sin(millis() / 2000.0 * PI)) - 0.36787944) * 108.4;
|
||||
FastLED.setBrightness(breath);
|
||||
FastLED.delay(100 / speed);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user