Skip to content

Commit 6c0b73b

Browse files
committed
Update platformio.ini
* added ${common_mm.NetDebug_build_flags} to de-dupliate flags * small update to pico V4 env * removed refs to non-existing file (comments only)
1 parent 44600b1 commit 6c0b73b

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

platformio.ini

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,11 @@ HUB75_build_flags =
10221022
HUB75_lib_deps = https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA.git @ 3.0.10
10231023
HUB75_lib_ignore = ESP32 HUB75 LED MATRIX PANEL DMA Display ;; to remove the HUB75 lib dependancy (saves a few bytes)
10241024

1025+
NetDebug_build_flags =
1026+
;; WLEDMM: only setting WLED_DEBUG_HOST is enough, ip and port can be defined in sync settings as well
1027+
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1028+
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1029+
10251030

10261031
build_flags_S =
10271032
-Wall -Wformat -Woverflow -Wuninitialized -Winit-self -Warray-bounds ; enables more warnings
@@ -1051,9 +1056,7 @@ build_flags_M =
10511056
-D USERMOD_ROTARY_ENCODER_UI
10521057
-D USERMOD_AUTO_SAVE
10531058
${common_mm.animartrix_build_flags}
1054-
;WLEDMM: only setting WLED_DEBUG_HOST is enough, ip and port can be defined in sync settings as well
1055-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1056-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1059+
${common_mm.NetDebug_build_flags}
10571060

10581061
lib_deps_M =
10591062
;https://github.com/blazoncek/OneWire.git ; includes bugfixes for inconsistent readings
@@ -1127,14 +1130,12 @@ extends = esp32_4MB_S_base
11271130
build_flags = ${common.build_flags_esp32} ${common_mm.build_flags_S} ${common_mm.build_flags_M} ;; we don't want common_mm.build_disable_sync_interfaces, so we cannot inherit from esp32_4MB_S_base
11281131
build_unflags = ${esp32_4MB_S_base.build_unflags}
11291132
lib_deps = ${esp32_4MB_S_base.lib_deps} ${common_mm.lib_deps_M}
1130-
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
11311133

11321134
[esp32_4MB_XL_base]
11331135
extends = esp32_4MB_M_base
11341136
build_flags = ${esp32_4MB_M_base.build_flags} ${common_mm.build_flags_XL}
11351137
build_unflags = ${esp32_4MB_M_base.build_unflags}
11361138
lib_deps = ${esp32_4MB_M_base.lib_deps} ${common_mm.lib_deps_XL}
1137-
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
11381139

11391140
;common default for all V4 min environments, including -S3, -S2, -C3
11401141
[esp32_4MB_V4_S_base]
@@ -1241,9 +1242,8 @@ build_flags = ${esp32_4MB_S_base.build_flags}
12411242
;-D WLED_DISABLE_MQTT
12421243
;-D WLED_DISABLE_INFRARED
12431244
-D WLEDMM_SAVE_FLASH
1244-
;WLEDMM: disable the next two lines if you don't need "net Debug". It will free ~2% of flash
1245-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1246-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1245+
;WLEDMM: disable the next line if you don't need "net Debug". It will free ~2% of flash
1246+
${common_mm.NetDebug_build_flags}
12471247
;; normal build
12481248
; RAM: [=== ] 25.0% (used 81988 bytes from 327680 bytes)
12491249
; Flash: [========= ] 87.4% (used 1374677 bytes from 1572864 bytes) WLEDMM: Earlier 85.7
@@ -1385,8 +1385,7 @@ build_flags = ${common.build_flags_esp8266}
13851385
;; -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes
13861386
; -D WLED_DISABLE_2D
13871387
; -UWLED_USE_MY_CONFIG
1388-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1389-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1388+
${common_mm.NetDebug_build_flags}
13901389
; -D WLED_DEBUG
13911390
; monitor_filters = esp8266_exception_decoder
13921391
;; lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
@@ -1407,8 +1406,7 @@ build_flags = ${common.build_flags_esp8266}
14071406
;; -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes
14081407
; -D WLED_DISABLE_2D
14091408
; -UWLED_USE_MY_CONFIG
1410-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1411-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1409+
${common_mm.NetDebug_build_flags}
14121410
; -D WLED_DEBUG
14131411
; monitor_filters = esp8266_exception_decoder
14141412
;; lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
@@ -1436,8 +1434,7 @@ build_flags = ${common.build_flags_esp8266}
14361434
; -D USERMOD_ARTIFX ; this is compiling but not working due to low memory on 8266
14371435
-D USERMOD_BATTERY ;; enable Battery usermod
14381436
-D USERMOD_BATTERY_USE_LIPO ;; use new "discharging curve" for LiPo cells
1439-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1440-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1437+
${common_mm.NetDebug_build_flags}
14411438
; -D WLED_DEBUG
14421439
monitor_filters = esp8266_exception_decoder
14431440
lib_deps = ${esp8266.lib_deps}
@@ -1492,8 +1489,7 @@ build_flags = ${common.build_flags_esp8266}
14921489
-D WLED_DISABLE_ALEXA
14931490
-D WLED_DISABLE_HUESYNC
14941491
; -D WLED_DEBUG ${common.debug_flags} ;; un-comment for debug messages
1495-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1496-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1492+
${common_mm.NetDebug_build_flags}
14971493
;; -D WLED_DISABLE_ESPNOW ;; might help in case of WiFi connectivity problems
14981494
; -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes
14991495
; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
@@ -1533,8 +1529,7 @@ build_flags = ${common.build_flags_esp8266}
15331529
-D USERMOD_FOUR_LINE_DISPLAY
15341530
-D USERMOD_MPU6050_IMU ; gyro/accelero for USERMOD_GAMES (ONLY WORKS IF USERMOD_FOUR_LINE_DISPLAY NOT INCLUDED - I2C SHARING BUG)
15351531
-D USERMOD_GAMES ; WLEDMM usermod
1536-
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
1537-
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
1532+
${common_mm.NetDebug_build_flags}
15381533
; -D WLED_DEBUG
15391534
monitor_filters = esp8266_exception_decoder
15401535
lib_deps = ${esp8266.lib_deps}
@@ -2448,6 +2443,7 @@ build_flags = ${esp32_4MB_V4_S_base.esp32_build_flags}
24482443
-D WLED_WATCHDOG_TIMEOUT=0
24492444
; -D WLED_WATCHDOG_TIMEOUT=60
24502445
-D WLED_DISABLE_ADALIGHT ;; WLEDMM this board does not have a serial-to-USB chip. Better to disable serial protocols, to avoid crashes (see upstream #3128)
2446+
${common_mm.NetDebug_build_flags} ;; net debug is not included in normal _S builds
24512447
; -D WLED_DEBUG
24522448
; -D SR_DEBUG
24532449
-D LEDPIN=2
@@ -2459,9 +2455,11 @@ build_flags = ${esp32_4MB_V4_S_base.esp32_build_flags}
24592455
-D SR_ENABLE_DEFAULT ;; enable audioreactive at first start - no need to manually set "enable", then reboot
24602456
; -D WLED_USE_MY_CONFIG
24612457
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
2462-
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
2463-
; RAM: [=== ] 27.9% (used 91448 bytes from 327680 bytes)
2464-
; Flash: [==========] 96.2% (used 1513557 bytes from 1572864 bytes)
2458+
lib_ignore =
2459+
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
2460+
${common_mm.HUB75_lib_ignore}
2461+
; RAM: [=== ] 27.9% (used 91528 bytes from 327680 bytes)
2462+
; Flash: [==========] 96.7% (used 1521457 bytes from 1572864 bytes)
24652463
;
24662464

24672465

0 commit comments

Comments
 (0)