Timebase sync

This commit is contained in:
cschwinne
2019-10-18 12:19:52 +02:00
parent 2852061699
commit d4c921ea2e
6 changed files with 43 additions and 15 deletions

View File

@@ -55,7 +55,7 @@ void WS2812FX::init(bool supportWhite, uint16_t countPixels, bool skipFirst)
}
void WS2812FX::service() {
now = millis(); // Be aware, millis() rolls over every 49 days
now = millis() + timebase; // Be aware, millis() rolls over every 49 days
if (now - _lastShow < MIN_SHOW_DELAY) return;
bool doShow = false;
for(uint8_t i=0; i < MAX_NUM_SEGMENTS; i++)