avoid updating strip / segments while draving effects (ESP32 only)

💫 this is the way🌟
A new locking mechanism that allows to wait until strip.service() has completed.
This commit is contained in:
Frank
2023-06-01 17:41:36 +02:00
parent e99874159d
commit 0a5bfb656d
7 changed files with 100 additions and 11 deletions

View File

@@ -700,7 +700,7 @@ class WS2812FX { // 96 bytes
_cumulativeFps500(2*500), // WLEDMM more accurate FPS measurement for ESP32
_lastShow500(0),
#endif
_isServicing(false),
_isServicing(true), // WLEDMM start with "true" - flag will be reset by strip.finalizeInit()
_isOffRefreshRequired(false),
_hasWhiteChannel(false),
_triggered(false),
@@ -739,6 +739,7 @@ class WS2812FX { // 96 bytes
printSize(),
#endif
finalizeInit(),
waitUntilIdle(void), // WLEDMM
service(void),
setMode(uint8_t segid, uint8_t m),
setColor(uint8_t slot, uint32_t c),