@@ -21,7 +21,7 @@ default_envs = nodemcuv2
2121; default_envs = esp8285_5CH_H801
2222
2323# Release binaries follow
24- ; default_envs = nodemcuv2, esp01, esp01_1m, esp32dev
24+ ; default_envs = nodemcuv2, esp01, esp01_1m, esp32dev, custom_WS2801, custom_APA102, custom_LEDPIN_16, custom_LEDPIN_4
2525
2626[common]
2727# ------------------------------------------------------------------------------
4848arduino_core_2_5_2 =
[email protected] 4949arduino_core_2_6_1 =
[email protected] 5050arduino_core_2_6_2 =
[email protected] 51- arduino_core_2_6_3 =
[email protected] .
2 51+ arduino_core_2_6_3 =
[email protected] .
3 5252
5353# Development platforms
5454arduino_core_develop = https://github.com/platformio/platform-espressif8266# develop
@@ -61,8 +61,9 @@ platform_latest = ${common.arduino_core_2_6_3}
6161# FLAGS: DEBUG
6262#
6363# ------------------------------------------------------------------------------
64- debug_flags = -D DEBUG =1 -D WLED_DEBUG -DDEBUG_ESP_CORE - DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
64+ debug_flags = -D DEBUG =1 -D WLED_DEBUG -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
6565# if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
66+ # -DDEBUG_ESP_CORE is not working right now
6667
6768# ------------------------------------------------------------------------------
6869# FLAGS: ldscript
@@ -88,7 +89,7 @@ debug_flags = -D DEBUG=1 -D WLED_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG
8889# TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA
8990# This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m).
9091# ------------------------------------------------------------------------------
91- build_flags = -g -w -DMQTT_MAX_PACKET_SIZE =1024 -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
92+ build_flags = -g -w -DMQTT_MAX_PACKET_SIZE =1024 -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
9293 -DSECURE_CLIENT =SECURE_CLIENT_BEARSSL -DBEARSSL_SSL_BASIC
9394build_flags_esp8266 = ${common.build_flags} -DESP8266
9495build_flags_esp32 = ${common.build_flags} -DARDUINO_ARCH_ESP32
@@ -207,3 +208,31 @@ build_type = debug
207208platform = ${common.platform_latest}
208209board_build.ldscript = ${common.ldscript_4m1m}
209210build_flags = ${common.build_flags_esp8266} ${common.debug_flags}
211+
212+ # ------------------------------------------------------------------------------
213+ # custom board configurations
214+ # ------------------------------------------------------------------------------
215+
216+ [env:custom_LEDPIN_4]
217+ board = d1_mini
218+ platform = ${common.platform_latest}
219+ board_build.ldscript = ${common.ldscript_4m1m}
220+ build_flags = ${common.build_flags_esp8266} -D LEDPIN =4 -D IRPIN =5
221+
222+ [env:custom_LEDPIN_16]
223+ board = d1_mini
224+ platform = ${common.platform_latest}
225+ board_build.ldscript = ${common.ldscript_4m1m}
226+ build_flags = ${common.build_flags_esp8266} -D LEDPIN =16
227+
228+ [env:custom_APA102]
229+ board = d1_mini
230+ platform = ${common.platform_latest}
231+ board_build.ldscript = ${common.ldscript_4m1m}
232+ build_flags = ${common.build_flags_esp8266} -D USE_APA102
233+
234+ [env:custom_WS2801]
235+ board = d1_mini
236+ platform = ${common.platform_latest}
237+ board_build.ldscript = ${common.ldscript_4m1m}
238+ build_flags = ${common.build_flags_esp8266} -D USE_WS2801
0 commit comments