pitrix/src/effect_static.cpp
Fabian Schlenz 382631d7d7 Effect#loop now gets the time since the last run of the loop in ms. This enables
the effects to show animations that stay fluid independent of the current frame rate.
2019-10-01 06:29:32 +02:00

14 lines
237 B
C++

#include "effect_static.h"
#include "functions.h"
#include "my_fastled.h"
StaticEffect::StaticEffect(CRGB col) {
color = col;
}
void StaticEffect::loop(uint16_t ms) {
EVERY_N_SECONDS(1) {
window->clear(&color);
}
}