Browse Source

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

master
Julien Cabillot 3 years ago
committed by JC
parent
commit
ea42471308
1 changed files with 1 additions and 7 deletions
  1. 8
      mqttfastledmenu.ino

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

Loading…
Cancel
Save