diff --git a/include/prototypes.h b/include/prototypes.h index 3f6fe6c..78ea87c 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -34,4 +34,6 @@ typedef struct Matrix { double a22; } Matrix; +extern uint8_t baseHue; + #endif diff --git a/src/effect_confetti.cpp b/src/effect_confetti.cpp index 9830ea1..3599d47 100644 --- a/src/effect_confetti.cpp +++ b/src/effect_confetti.cpp @@ -1,10 +1,13 @@ #include "effect_confetti.h" #include "config.h" #include "functions.h" +#include "prototypes.h" void ConfettiEffect::loop() { fadeToBlackBy(leds, LED_COUNT, 1); - addPixelColor(random16(LED_COUNT), CHSV(random8(), 200, 255)); + for (int i=0; iloop();