Moved settings from preprocessor directives to variables. Also added a way to (for now only) display them via HTTP server.
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
void ConfettiEffect::loop(uint16_t ms) {
|
||||
window->fadeToBlackBy(3);
|
||||
for (int i=0; i<EFFECT_CONFETTI_PIXELS_PER_LOOP; i++) {
|
||||
for (int i=0; i<settings.effects.confetti.pixels_per_loop; i++) {
|
||||
CRGB color = _getColor();
|
||||
window->addPixelColor(random16(LED_COUNT), &color);
|
||||
}
|
||||
|
Reference in New Issue
Block a user