12 lines
266 B
C++
12 lines
266 B
C++
|
#include "effect_firework.h"
|
||
|
#include "my_fastled.h"
|
||
|
#include "functions.h"
|
||
|
#include "config.h"
|
||
|
|
||
|
void FireworkEffect::loop() {
|
||
|
if (random8(EFFECT_FIREWORK_SHOT_CHANCE)==0) {
|
||
|
leds[random16(LED_COUNT)] = CHSV(random8(), 255, 255);
|
||
|
}
|
||
|
blur(EFFECT_FIREWORK_BLUR);
|
||
|
}
|