diff --git a/wled00/WS2812FX.cpp b/wled00/WS2812FX.cpp index 9d19c2be..c161d8cd 100644 --- a/wled00/WS2812FX.cpp +++ b/wled00/WS2812FX.cpp @@ -2032,10 +2032,9 @@ void WS2812FX::setBrightness(uint8_t b) void WS2812FX::show() { #ifdef ARDUINO_ARCH_ESP32 - portDISABLE_INTERRUPTS(); delay(1); + portDISABLE_INTERRUPTS(); //this is a workaround to prevent flickering (see https://github.com/adafruit/Adafruit_NeoPixel/issues/139) NeoPixelBrightnessBus::Show(); - delay(1); portENABLE_INTERRUPTS(); #else NeoPixelBrightnessBus::Show(); diff --git a/wled00/wled00.ino b/wled00/wled00.ino index b65cbcfb..9264328b 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -29,7 +29,7 @@ #include "WS2812FX.h" //version in format yymmddb (b = daily build) -#define VERSION 1801162 +#define VERSION 1801164 const String versionName = "WLED 0.5dev"; //AP and OTA default passwords (change them!) @@ -326,7 +326,7 @@ void loop() { #ifdef USEOVERLAYS handleOverlays(); #endif - strip.service(); + if (bri_t) strip.service(); //do not update strip if off, prevents flicker on ESP32 } //DEBUG