From 4f34cfb6549e79b37b8d1a5eae20760a2e8d2bb4 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Wed, 4 Mar 2020 11:45:25 +0100 Subject: [PATCH] Add custom32_LEDPIN_16 environment (from #748 ) --- platformio.ini | 10 +++++++++- wled00/const.h | 12 +++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/platformio.ini b/platformio.ini index 6e1bae31..c1663c4e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -19,7 +19,7 @@ extra_configs = default_envs = d1_mini, esp01, esp01_1m_ota, esp32dev # Release binaries follow -; default_envs = nodemcuv2, esp01, esp01_1m_ota, esp01_1m_full, esp32dev, custom_WS2801, custom_APA102, custom_LEDPIN_16, custom_LEDPIN_4 +; default_envs = nodemcuv2, esp01, esp01_1m_ota, esp01_1m_full, esp32dev, custom_WS2801, custom_APA102, custom_LEDPIN_16, custom_LEDPIN_4, custom32_LEDPIN_16 # Single binaries ; default_envs = nodemcuv2 @@ -261,3 +261,11 @@ board = d1_mini platform = ${common.platform_latest} board_build.ldscript = ${common.ldscript_4m1m} build_flags = ${common.build_flags_esp8266} -D USE_WS2801 + +[env:custom32_LEDPIN_16] +board = esp32dev +platform = espressif32@1.11.2 +build_flags = ${common.build_flags_esp32} -D LEDPIN=16 +lib_ignore = + ESPAsyncTCP + ESPAsyncUDP diff --git a/wled00/const.h b/wled00/const.h index b54215ca..21be1953 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -49,17 +49,19 @@ #define DMX_MODE_MULTIPLE_DRGB 5 //every LED is addressed with its own RGB and share a master dimmer (ledCount * 3 + 1 channels) //Light capability byte (unused) -#define TYPE_WS2812_RGB 0 -#define TYPE_SK6812_RGBW 1 -#define TYPE_WS2812_WWA 2 //amber + warm + cold white -#define TYPE_APA102 3 -#define TYPE_LPD8806 4 +#define TYPE_NONE 0 //light is not configured +#define TYPE_RESERVED 1 //unused. Might indicate a "virtual" light +#define TYPE_WS2812_RGB 2 +#define TYPE_SK6812_RGBW 3 +#define TYPE_WS2812_WWA 4 //amber + warm + cold white #define TYPE_WS2801 5 #define TYPE_ANALOG_1CH 6 //single channel PWM. Uses value of brightest RGBW channel #define TYPE_ANALOG_2CH 7 //analog WW + CW #define TYPE_ANALOG_3CH 8 //analog RGB #define TYPE_ANALOG_4CH 9 //analog RGBW #define TYPE_ANALOG_5CH 10 //analog RGB + WW + CW +#define TYPE_APA102 11 +#define TYPE_LPD8806 12 //Hue error codes #define HUE_ERROR_INACTIVE 0