WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 480e7f5

Browse files
authored
Add all release environments to platformio.ini (#736)
1 parent cffee7b commit 480e7f5

File tree

2 files changed

+51
-5
lines changed

2 files changed

+51
-5
lines changed

platformio.ini

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
# ------------------------------------------------------------------------------
@@ -48,7 +48,7 @@ arduino_core_2_5_1 = [email protected]
4848
arduino_core_2_5_2 = [email protected]
4949
arduino_core_2_6_1 = [email protected]
5050
arduino_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
5454
arduino_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
9394
build_flags_esp8266 = ${common.build_flags} -DESP8266
9495
build_flags_esp32 = ${common.build_flags} -DARDUINO_ARCH_ESP32
@@ -207,3 +208,31 @@ build_type = debug
207208
platform = ${common.platform_latest}
208209
board_build.ldscript = ${common.ldscript_4m1m}
209210
build_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

platformio_override.ini.example

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,21 @@ build_flags = ${common.build_flags_esp8266}
1414
-D WLED_DISABLE_BLYNK
1515
-D WLED_DISABLE_CRONIXIE
1616
-D WLED_DISABLE_HUESYNC
17-
-D WLED_DISABLE_INFRARED
17+
-D WLED_DISABLE_INFRARED
18+
; PIN defines - uncomment and change, if needed:
19+
; -D LEDPIN=2
20+
; -D BTNPIN=0
21+
; -D IR_PIN=4
22+
; -D RLYPIN=12
23+
; -D RLYMDE=1
24+
; digital LED strip types - uncomment only one ! - this will disable WS281x / SK681x support
25+
; -D USE_APA102
26+
; -D USE_WS2801
27+
; -D USE_LPD8806
28+
; to drive analog LED strips (aka 5050), uncomment the following
29+
; PWM pins 5,12,13,15 are used with Magic Home LED Controller (default)
30+
; -D WLED_USE_ANALOG_LEDS
31+
; for the H801 controler (PINs 15,13,12,14 (W2 = 04)) uncomment this
32+
; -D WLED_USE_H801
33+
; and to enable channel 5 for RGBW-CT led strips this
34+
; -D WLED_USE_5CH_LEDS

0 commit comments

Comments
 (0)