pitrix/src/effect_confetti.cpp

11 lines
274 B
C++
Raw Normal View History

2019-05-30 09:12:40 +00:00
#include "effect_confetti.h"
#include "config.h"
#include "functions.h"
void ConfettiEffect::loop() {
fadeToBlackBy(leds, LED_COUNT, 1);
addPixelColor(random16(LED_COUNT), CHSV(random8(), 200, 255));
}
boolean ConfettiEffect::can_be_shown_with_clock() { return true; };