Skip to content

Commit 05ad1a8

Browse files
committed
change from Opt-Out to Opt-In for solid (analoge) RGB stripes
Changed code from #define WLED_DISABLE_ANALOG_LEDS to #define WLED_USE_ANALOG_LEDS
1 parent 4f28120 commit 05ad1a8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

platformio.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ platform = [email protected]
9696
build_flags =
9797
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
9898
-D ARDUINO_ARCH_ESP32
99-
-D WLED_DISABLE_INFRARED
100-
-D WLED_DISABLE_ANALOG_LEDS
101-
# disable ANALOG LEDS because the analogWrite-function needs to be adapted to ESP32
102-
-D WLED_DISABLE_ANALOG_LEDS
99+
-D WLED_DISABLE_INFRARED
103100

104101
# see: http://docs.platformio.org/en/latest/platforms/espressif8266.html
105102
[env:nodemcuv2]
@@ -135,6 +132,7 @@ framework = ${common.framework}
135132
build_flags =
136133
${common.build_flags}
137134
${common:esp8266_1M.build_flags}
135+
-D WLED_USE_ANALOG_LEDS
138136
-D WLED_DEBUG
139137
lib_deps =
140138
${common.lib_deps_external}
@@ -148,6 +146,7 @@ framework = ${common.framework}
148146
build_flags =
149147
${common.build_flags}
150148
${common:esp8266_1M.build_flags}
149+
-D WLED_USE_ANALOG_LEDS
151150
-D WLED_USE_5CH_LEDS
152151
-D WLED_DEBUG
153152
lib_deps =

wled00/wled00.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
//#define WLED_DEBUG
3434

3535
//to toggle using analog RGB or RGBW led strips (un)comment the following line
36-
//#define WLED_DISABLE_ANALOG_LEDS
36+
//#define WLED_USE_ANALOG_LEDS
37+
38+
//to toggle using 5CH analog RGBWS led strips (un)comment the following line
39+
//#define WLED_USE_5CH_LEDS
3740

3841
//library inclusions
3942
#include <Arduino.h>
@@ -88,7 +91,7 @@
8891
#endif
8992

9093
#ifdef ARDUINO_ARCH_ESP32
91-
#define WLED_DISABLE_ANALOG_LEDS // Solid RGBW not implemented for ESP32 yet
94+
#undef WLED_USE_ANALOG_LEDS // Solid RGBW not implemented for ESP32 yet
9295
/*#ifndef WLED_DISABLE_INFRARED
9396
#include <IRremote.h>
9497
#endif*/ //there are issues with ESP32 infrared, so it is disabled for now

0 commit comments

Comments
 (0)