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
pull/472/head
Unknown 2019-12-15 12:43:54 +01:00
rodzic 4f28120d7e
commit 05ad1a8954
2 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -96,10 +96,7 @@ platform = espressif32@1.7.0
build_flags =
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-D ARDUINO_ARCH_ESP32
-D WLED_DISABLE_INFRARED
-D WLED_DISABLE_ANALOG_LEDS
# disable ANALOG LEDS because the analogWrite-function needs to be adapted to ESP32
-D WLED_DISABLE_ANALOG_LEDS
-D WLED_DISABLE_INFRARED
# see: http://docs.platformio.org/en/latest/platforms/espressif8266.html
[env:nodemcuv2]
@ -135,6 +132,7 @@ framework = ${common.framework}
build_flags =
${common.build_flags}
${common:esp8266_1M.build_flags}
-D WLED_USE_ANALOG_LEDS
-D WLED_DEBUG
lib_deps =
${common.lib_deps_external}
@ -148,6 +146,7 @@ framework = ${common.framework}
build_flags =
${common.build_flags}
${common:esp8266_1M.build_flags}
-D WLED_USE_ANALOG_LEDS
-D WLED_USE_5CH_LEDS
-D WLED_DEBUG
lib_deps =

Wyświetl plik

@ -33,7 +33,10 @@
//#define WLED_DEBUG
//to toggle using analog RGB or RGBW led strips (un)comment the following line
//#define WLED_DISABLE_ANALOG_LEDS
//#define WLED_USE_ANALOG_LEDS
//to toggle using 5CH analog RGBWS led strips (un)comment the following line
//#define WLED_USE_5CH_LEDS
//library inclusions
#include <Arduino.h>
@ -88,7 +91,7 @@
#endif
#ifdef ARDUINO_ARCH_ESP32
#define WLED_DISABLE_ANALOG_LEDS // Solid RGBW not implemented for ESP32 yet
#undef WLED_USE_ANALOG_LEDS // Solid RGBW not implemented for ESP32 yet
/*#ifndef WLED_DISABLE_INFRARED
#include <IRremote.h>
#endif*/ //there are issues with ESP32 infrared, so it is disabled for now