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.
This commit is contained in:
@ -6,7 +6,7 @@ StaticEffect::StaticEffect(CRGB col) {
|
||||
color = col;
|
||||
}
|
||||
|
||||
void StaticEffect::loop() {
|
||||
void StaticEffect::loop(uint16_t ms) {
|
||||
EVERY_N_SECONDS(1) {
|
||||
window->clear(&color);
|
||||
}
|
||||
|
Reference in New Issue
Block a user