Skip to content

Commit 9597449

Browse files
committed
adding [env:esp32_V4_wokwi_debug]
1 parent d1a4530 commit 9597449

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

platformio.ini

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,64 @@ monitor_filters = esp32_exception_decoder
20252025
; RAM: [=== ] 26.4% (used 86356 bytes from 327680 bytes)
20262026
; Flash: [======== ] 83.6% (used 1753461 bytes from 2097152 bytes)
20272027

2028+
2029+
## for testing with Wokwi
2030+
[env:esp32_V4_wokwi_debug]
2031+
extends = esp32_4MB_V4_M_base
2032+
;; platform = ${esp32.platformTasmota}
2033+
;; platform_packages = ${esp32.platform_packagesTasmota}
2034+
;board = esp32_16MB-poe ;; needed for ethernet boards (selects "esp32-poe" as variant)
2035+
;;board_build.partitions = ${esp32.extreme_partitions} ;; WLED extended for 16MB flash: 3.2MB firmware, 9 MB filesystem
2036+
board_build.partitions = ${esp32.big_partitions}
2037+
build_unflags = ${esp32_4MB_V4_S_base.build_unflags}
2038+
;; removing some usermods to keep it simple
2039+
-D USERMOD_DALLASTEMPERATURE
2040+
-D USERMOD_FOUR_LINE_DISPLAY
2041+
;;-D USERMOD_ARTIFX
2042+
-D USERMOD_ROTARY_ENCODER_UI
2043+
-D USERMOD_AUTO_SAVE
2044+
-D USERMOD_PIRSWITCH
2045+
-D USERMOD_MULTI_RELAY
2046+
-D USE_ALT_DISPLAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
2047+
-D USERMOD_MPU6050_IMU ; gyro/accelero for USERMOD_GAMES (ONLY WORKS IF USERMOD_FOUR_LINE_DISPLAY NOT INCLUDED - I2C SHARING BUG)
2048+
-D USERMOD_GAMES ; WLEDMM usermod
2049+
${common_mm.animartrix_build_flags}
2050+
${common_mm.HUB75_build_flags}
2051+
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to disable net print
2052+
;; more debug output
2053+
-DCORE_DEBUG_LEVEL=0
2054+
-DNDEBUG
2055+
;;${Speed_Flags.build_unflags} ;; to override -Os
2056+
build_flags = ${esp32_4MB_V4_S_base.build_flags}
2057+
${common_mm.build_disable_sync_interfaces}
2058+
-D WLED_RELEASE_NAME=esp32_16MB_Wokwi_debug ; This will be included in the firmware.bin filename
2059+
-D SERVERNAME='"WLED-WOKWI"'
2060+
;;${Speed_Flags.build_flags_V4} ;; optimize for speed
2061+
-g3 -ggdb ;; better debug output
2062+
-DCORE_DEBUG_LEVEL=5 ;; max core debug output
2063+
-DDEBUG -D WLED_DEBUG -DWLED_DEBUG_JSON ;; -DWLED_DEBUG_FS ;; max WLED debugging output
2064+
-D WLED_DISABLE_BROWNOUT_DET -D WLED_WATCHDOG_TIMEOUT=0
2065+
;;-D WLED_USE_ETHERNET
2066+
;; -D WLED_ETH_DEFAULT=2 ;; ESP32-POE board configuration (works with QEMU open_eth)
2067+
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
2068+
-D WLED_DISABLE_OTA
2069+
-D WLED_DISABLE_ADALIGHT ;; WLEDMM Better to disable serial protocols, to avoid crashes (see upstream #3128)
2070+
-D MDNS_NAME=\"\" ;; disable MDNS
2071+
-D WLED_DISABLE_INFRARED
2072+
-D LEDPIN=4
2073+
-D BTNPIN=-1 -D RLYPIN=-1 -D IRPIN=-1 ;; disable all extra pins
2074+
-D SR_DMTYPE=254 -D AUDIOPIN=-1 ;; set AR into "received only" mode
2075+
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
2076+
lib_ignore =
2077+
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
2078+
OneWire ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE
2079+
U8g2 ; used for USERMOD_FOUR_LINE_DISPLA
2080+
${common_mm.HUB75_lib_ignore}
2081+
monitor_filters = esp32_exception_decoder
2082+
; RAM: [=== ] 25.7% (used 84372 bytes from 327680 bytes)
2083+
; Flash: [========= ] 85.3% (used 1621925 bytes from 1900544 bytes)
2084+
2085+
20282086
;; experimental environment for boards with PSRAM (needs ESP-IDF 4.4.1). HUB75 included (may have PIN conflicts)
20292087
[env:esp32_4MB_PSRAM_S]
20302088
extends = esp32_4MB_V4_S_base

0 commit comments

Comments
 (0)