Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
a68c1a8
ESP32-C6 buildenv
softhack007 Jun 13, 2024
931788f
bus manager: ledc (PWM) driver disabled for -C6
softhack007 Jun 13, 2024
b19902b
added WLED_NO_RMT_PIXELBUS for -C6
softhack007 Jun 13, 2024
246e2e9
workaround for network class naming conflict on -C6
softhack007 Jun 13, 2024
e843d8a
adding new type for -C6 (nodes overview, improv, info page)
softhack007 Jun 13, 2024
404c88c
-C6: rtc_get_reset_reason --> esp_rom_get_reset_reason()
softhack007 Jun 13, 2024
3bf3a25
pinmanager update for -C6
softhack007 Jun 13, 2024
784affd
several places where -C6 should be treated like -C3
softhack007 Jun 13, 2024
9fdb4c6
adding -C6 to github action builds
softhack007 Jun 13, 2024
1a66d6e
make non-C6 builds work again
softhack007 Jun 13, 2024
7b42a70
hack to make 8266 compile again
softhack007 Jun 13, 2024
6d4b611
fix for fix
softhack007 Jun 13, 2024
4ddead4
Update platformio.ini
softhack007 Jun 13, 2024
ee5f09a
Update platformio.ini
softhack007 Jun 13, 2024
af9cfae
ESP32-Chip_info does not yet support C6
softhack007 Jun 13, 2024
27617ec
Merge branch 'C6_experimental' of https://github.com/MoonModules/WLED…
softhack007 Jun 13, 2024
f21350d
Update platformio.ini
softhack007 Jun 13, 2024
3a13278
use full arduino framework
softhack007 Jun 13, 2024
d07fe96
use smaller littleFS for 4MB esp32-C6
softhack007 Jun 13, 2024
656d6ae
FASTLED_NO_FASTLED
softhack007 Jun 14, 2024
45ccab2
Update platformio.ini
softhack007 Jun 14, 2024
6cfb1f8
Merge branch 'mdev' into C6_experimental
softhack007 Jul 19, 2024
dc0371f
post-merge fixes
softhack007 Jul 19, 2024
5e160b8
upgrade to arduino 3.0.3
softhack007 Jul 19, 2024
8d686b1
Initial push
troyhacks Sep 16, 2024
1b0c94f
Builds, doesn't link... yet.
troyhacks Sep 16, 2024
ad93f6a
More testing
troyhacks Sep 16, 2024
cd6e81a
More P4 hacks, better hacks.
troyhacks Sep 17, 2024
131bd00
Cleanup from testing
troyhacks Sep 17, 2024
2fac635
Mostly disabling old WIFi libraries
troyhacks Sep 18, 2024
f2c3830
WORKING P4 BUILD
troyhacks Sep 27, 2024
8b881e2
MDNS sometimes working, Local IP lookup, cleanup
troyhacks Sep 27, 2024
b6ec96b
AudioReactive working for network input!
troyhacks Sep 27, 2024
69fb65c
I2S Fixes and on-board P4 button allowed in buttons
troyhacks Sep 27, 2024
a54c3e0
Erternet and Pin Reservation fixes
troyhacks Sep 27, 2024
1b73765
-D TROYHACKS_FAILSAFE_BUSSES will cause busses to be removed at startup.
troyhacks Sep 27, 2024
2e7fdf4
New BusManager backported
troyhacks Sep 28, 2024
baacd47
Update to newer FX code
troyhacks Sep 29, 2024
b4e9b48
Info page fix
troyhacks Sep 29, 2024
b9433f9
Press F to change between Art-Net skip-frame on/off
troyhacks Sep 29, 2024
851d497
Ported NetworkClass gateway & netmask,to v5.3
troyhacks Sep 29, 2024
34c326e
Initial WiFi and Ethernet coexistence (working!)
troyhacks Sep 29, 2024
4e7cac0
Wifi+Ethernet Coxiestence fix
troyhacks Sep 29, 2024
75bb22e
Seeing if we can get chip information for the P4
troyhacks Sep 29, 2024
63eb0c8
Revert stopping an error message
troyhacks Sep 29, 2024
0e33d4f
Allow up to 12288 LEDs in the UI
troyhacks Aug 19, 2024
3006b03
Added Art-Net RGBW and color order for Art-Net
troyhacks Aug 16, 2024
cdfec8f
Added Art-Net RGBW and color order for Art-Net
troyhacks Aug 16, 2024
02e4560
Revert WiFi+Ethernet Coexistence as it's a slowdown
troyhacks Sep 29, 2024
627bc4f
Network init message cleanup
troyhacks Sep 29, 2024
fb037b1
Network.localMAC isn't working at the moment
troyhacks Sep 29, 2024
c448667
Network::isConnected just faking it.
troyhacks Sep 29, 2024
bbb0d04
Kinda faking NetworkClass::isEthernet
troyhacks Sep 29, 2024
594a82e
experimental: stress testing optimized color routines from DeDeHai
softhack007 Sep 30, 2024
33b3ebf
Hiding LED options that aren't compatible at the moment
troyhacks Sep 30, 2024
8a10e63
Move P4 logic to IDF version logic
troyhacks Oct 1, 2024
8140627
ES8311 support added for the ESP32-P4 EV board with mic.
troyhacks Oct 2, 2024
d5ec60d
Set max LEDs per bus to 16384
troyhacks Oct 3, 2024
d3c1326
Press "R" to reboot
troyhacks Oct 4, 2024
342bed0
Updated FX from mdev
troyhacks Oct 10, 2024
33e2386
Fix for weird signed behaviour in Octopus on later compilers.
troyhacks Oct 10, 2024
39170cb
Fix for weird signed behaviour in Drift on later compilers.
troyhacks Oct 10, 2024
10dc95b
Network fixes, basic isConnected() and improved localIP()
troyhacks Oct 13, 2024
a39fc0c
Max LEDS to 18432
troyhacks Oct 16, 2024
ea2b47f
Hide files set to ".off"
troyhacks Oct 17, 2024
48c6c86
Merge pull request #171 from Brandon502/mdev
softhack007 Oct 17, 2024
96fcfe8
BusNetwork cleanup
troyhacks Oct 19, 2024
5dba2e0
Use ESP32-P4 SIMD calls for dimming
troyhacks Oct 19, 2024
e125fee
Rename and improve SIMD assembly
troyhacks Oct 20, 2024
5335cd3
Comments fixed
troyhacks Oct 20, 2024
c4e7936
Move P4 assembly into udp.cpp
troyhacks Oct 20, 2024
607a6a8
Better P4 assembly optimization
troyhacks Oct 21, 2024
a7095cd
Minor indent change
troyhacks Oct 21, 2024
12bd877
Living dangerously (again)
troyhacks Oct 21, 2024
3e189ca
Exclude ESP32-P4 assembly if not on a P4
troyhacks Oct 21, 2024
f658923
heap_caps_calloc_prefer changes
troyhacks Oct 22, 2024
f1114e7
Minor optimization
troyhacks Oct 22, 2024
240a9e1
Comments fixed
troyhacks Oct 22, 2024
2e4db86
More arc 2D expand fixes from @Brandon502
troyhacks Oct 22, 2024
134bd4b
UI max LEDs to uint16_t max.
troyhacks Oct 23, 2024
25cbd72
Define header array size
troyhacks Oct 23, 2024
005619e
scrolling text: prevent flickering
softhack007 Oct 23, 2024
245a3e5
drawCharacter minor speedup
softhack007 Oct 23, 2024
e5c12c2
drawCharacter fixups after merge
troyhacks Oct 23, 2024
61fd459
Added getCustomMappingTable() to class
troyhacks Oct 24, 2024
d068179
Stashing PPA effect ideas
troyhacks Oct 24, 2024
7c846cd
Stashing PPA effect ideas
troyhacks Oct 25, 2024
9f68e4a
Stashing PPA effect ideas
troyhacks Oct 25, 2024
8eaf299
ARTNET_TESTING_ZEROS - zero brightnes for testing without lights.
troyhacks Oct 26, 2024
d7db691
Burn some main loop time to stop WDT panic if the main loop is runnin…
troyhacks Oct 26, 2024
2035e06
Faster logic for ARTNET_TESTING_ZEROS
troyhacks Oct 26, 2024
f4bbf63
Merge branch 'mdev' into P4_experimental
troyhacks Oct 26, 2024
9aff796
Post-merge fix
troyhacks Oct 26, 2024
114e176
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Oct 28, 2024
67b9541
Paintbrush proper check of length
troyhacks Oct 28, 2024
0fc3a7a
Merge branch 'P4_experimental' of https://github.com/troyhacks/WLED i…
troyhacks Oct 28, 2024
cea6733
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Oct 28, 2024
c7c6165
Old PPA include from testing.
troyhacks Oct 28, 2024
90a48b0
Re-enable handleNetworkTime, more work needed.
troyhacks Oct 28, 2024
862b94e
Merge branch 'P4_experimental' of https://github.com/troyhacks/WLED i…
troyhacks Oct 28, 2024
3227981
Merge branch 'mdev' into P4_experimental
troyhacks Oct 31, 2024
88fe762
Removing getFlashChipMode until it knows about the P4
troyhacks Oct 31, 2024
e05dea1
Stashing some other configs for Art-Net
troyhacks Oct 31, 2024
829204b
Stashing volumetric tests
troyhacks Nov 4, 2024
106ad07
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 5, 2024
bc6f1e6
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 6, 2024
aeabd33
Adjustting personal Art-Net config
troyhacks Nov 6, 2024
88fda6d
Merge branch 'P4_experimental' of https://github.com/troyhacks/WLED i…
troyhacks Nov 6, 2024
efc0d99
Proper Art-Net Settings
troyhacks Nov 7, 2024
4ec6f3a
New Art-Net tidy
troyhacks Nov 7, 2024
f4797d8
Art-Net P4 Tidy
troyhacks Nov 7, 2024
cdc1601
Art-Net sane defaults if using an old config without the new values
troyhacks Nov 7, 2024
e4aeb94
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 7, 2024
aa3ceea
Review Fixes
troyhacks Nov 10, 2024
77c0945
Review Fixes
troyhacks Nov 10, 2024
309a440
Code Review Fixes
troyhacks Nov 10, 2024
ba41735
Free BusNetwork _data on cleanup
troyhacks Nov 10, 2024
824fa8d
Minor indent fix
troyhacks Nov 10, 2024
b7215ee
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 10, 2024
6a67a35
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 10, 2024
a64356c
Art-Net Hidden Volumetric Hack
troyhacks Nov 11, 2024
f299d46
Merge branch 'MoonModules:mdev' into P4_experimental
troyhacks Nov 12, 2024
6e44b3d
Volumetric fix for size
troyhacks Nov 13, 2024
3d09a1e
Merge branch 'P4_experimental' of https://github.com/troyhacks/WLED i…
troyhacks Nov 13, 2024
1d30714
Merge branch 'mdev' into P4_experimental
troyhacks Nov 14, 2024
5e5f312
Merge branch 'mdev' into P4_experimental
troyhacks Nov 18, 2024
c915d28
GoL Temp Speed Fix
troyhacks Nov 18, 2024
e9e0695
Merge fix
troyhacks Nov 18, 2024
7c02f34
Merge branch 'mdev' into P4_experimental
troyhacks Nov 19, 2024
53b3661
Post-merge fixes
troyhacks Nov 19, 2024
2fe8dbb
Testing default env to just test-build ESP32-P4
troyhacks Nov 19, 2024
3f874e5
Seeing if we can compile without crosstool specified
troyhacks Nov 19, 2024
3435ae5
Trying with Linux toolchain for GitHub
troyhacks Nov 19, 2024
6c2b7ec
Dirty hack for ESPAsyncWebServer
troyhacks Nov 19, 2024
542382f
ESPAsyncWebServer particular commit
troyhacks Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ compile_commands.json
/wled00/Release
/wled00/wled00.ino.cpp
/wled00/html_*.h
/wled00/*.off
285 changes: 235 additions & 50 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,61 +43,65 @@
; default_envs = esp32c3dev
; default_envs = lolin_s2_mini
; default_envs = esp32s3dev_16MB_PSRAM_opi
; default_envs = esp32c6dev_8MB

; MoonModules entries
; ===================

default_envs =
esp32_4MB_S ;; experimental, optimized for speed
esp32_4MB_M ;; esp32 recommended default
esp32_4MB_M_eth
esp32_4MB_M_debug
esp32_4MB_XL
; esp32_16MB_S ;; experimental, optimized for speed
esp32_16MB_M ;; esp32 recommended for boards with 16MB flash
; esp32_16MB_M_debug
; esp32_16MB_XL
esp8266_2MB_S
esp8266_4MB_S ;; recommended for 8266 with audio sync
esp8266_4MB_M
wemos_shield_esp32_4MB_M
; wemos_shield_esp32_4MB_ICS4343x_M
; wemos_shield_esp32_4MB_SPM1423_M
; wemos_shield_esp32_4MB_LineIn_M
; wemos_shield_esp32_16MB_M
; wemos_shield_esp32_16MB_ICS4343x_M
; wemos_shield_esp32_16MB_SPM1423_M
; wemos_shield_esp32_16MB_SPM1423_XL
; wemos_shield_esp32_16MB_LineIn_M
esp32_pico_4MB_M
esp32_4MB_PSRAM_S
; esp32_4MB_PSRAM_REV3_S ;; experimental, optimized for WROVER-E with "revision3" chip
esp32S3_4MB_S
esp32S3_8MB_S ;; experimental, optimized for speed
esp32S3_8MB_M
esp32S3_4MB_PSRAM_S ;; for lolin s3 mini, S3 zero, S3 super mini - optimized for speed
esp32S3_4MB_PSRAM_M ;; for lolin s3 mini, S3 zero, S3 super mini
esp32S3_8MB_PSRAM_M ;; experiemental
esp32S3_16MB_PSRAM_M_HUB75 ;; for S3 with 16MB flash, and MOONHUB HUB75 adapter board
esp32S3_WROOM-2_M ;; for S3 WROOM-2
;; esp32s2_tinyUF2_PSRAM_S ;; experimental - only for adafruit -S2 boards with tinyUF2 bootloader !!!
esp32s2_PSRAM_S ;; OTA-compatible with upstream
esp32s2_PSRAM_M ;; for lolin S2 mini
esp32c3dev_4MB_M ;; experimental
esp32c3dev_2MB_M ;; experimental - 2MB Flash, no OTA
esp32c3mini_dio_4MB_M ;; for boards that need "dio" flash mode (instead of qio)
seeed_esp32c3_4MB_S ;; experimental
esp32_4MB_V4_S ;; experimental
esp32_16MB_V4_S ;; experimental - optimized for speed
esp32_16MB_V4_M ;; experimental
esp32_16MB_V4_M_debug ;; experimental
esp32_pico_4MB_V4_S ;; experimental - may work better in case you experience wifi connectivity problems
esp8266pro_16MB_S
esp8266pro_16MB_M
esp01_1MB_S
esp32_16MB_M_eth
athom_music_esp32_4MB_M
adafruit_matrixportal_esp32s3
; esp32c6dev_8MB ;; highly experimental.
; esp32c6dev_4MB ;; highly experimental.
; esp32_4MB_S ;; experimental, optimized for speed
; esp32_4MB_M ;; esp32 recommended default
; esp32_4MB_M_eth
; esp32_4MB_M_debug
; esp32_4MB_XL
; ; esp32_16MB_S ;; experimental, optimized for speed
; esp32_16MB_M ;; esp32 recommended for boards with 16MB flash
; ; esp32_16MB_M_debug
; ; esp32_16MB_XL
; esp8266_2MB_S
; esp8266_4MB_S ;; recommended for 8266 with audio sync
; esp8266_4MB_M
; wemos_shield_esp32_4MB_M
; ; wemos_shield_esp32_4MB_ICS4343x_M
; ; wemos_shield_esp32_4MB_SPM1423_M
; ; wemos_shield_esp32_4MB_LineIn_M
; ; wemos_shield_esp32_16MB_M
; ; wemos_shield_esp32_16MB_ICS4343x_M
; ; wemos_shield_esp32_16MB_SPM1423_M
; ; wemos_shield_esp32_16MB_SPM1423_XL
; ; wemos_shield_esp32_16MB_LineIn_M
; esp32_pico_4MB_M
; esp32_4MB_PSRAM_S
; ; esp32_4MB_PSRAM_REV3_S ;; experimental, optimized for WROVER-E with "revision3" chip
; esp32S3_4MB_S
; esp32S3_8MB_S ;; experimental, optimized for speed
; esp32S3_8MB_M
; esp32S3_4MB_PSRAM_S ;; for lolin s3 mini, S3 zero, S3 super mini - optimized for speed
; esp32S3_4MB_PSRAM_M ;; for lolin s3 mini, S3 zero, S3 super mini
; esp32S3_8MB_PSRAM_M ;; experiemental
; esp32S3_16MB_PSRAM_M_HUB75 ;; for S3 with 16MB flash, and MOONHUB HUB75 adapter board
; esp32S3_WROOM-2_M ;; for S3 WROOM-2
; ;; esp32s2_tinyUF2_PSRAM_S ;; experimental - only for adafruit -S2 boards with tinyUF2 bootloader !!!
; esp32s2_PSRAM_S ;; OTA-compatible with upstream
; esp32s2_PSRAM_M ;; for lolin S2 mini
; esp32c3dev_4MB_M ;; experimental
; esp32c3dev_2MB_M ;; experimental - 2MB Flash, no OTA
; esp32c3mini_dio_4MB_M ;; for boards that need "dio" flash mode (instead of qio)
; seeed_esp32c3_4MB_S ;; experimental
; esp32_4MB_V4_S ;; experimental
; esp32_16MB_V4_S ;; experimental - optimized for speed
; esp32_16MB_V4_M ;; experimental
; esp32_16MB_V4_M_debug ;; experimental
; esp32_pico_4MB_V4_S ;; experimental - may work better in case you experience wifi connectivity problems
; esp8266pro_16MB_S
; esp8266pro_16MB_M
; esp01_1MB_S
; esp32_16MB_M_eth
; athom_music_esp32_4MB_M
; adafruit_matrixportal_esp32s3
ESP32_P4_8MB_Experimental

; Go to MoonModules environments for environments

Expand Down Expand Up @@ -480,6 +484,84 @@ lib_deps =
;; makuna/NeoPixelBus @ 2.7.9 ;; experimental
${env.lib_deps}


[esp32c6]
;; generic definitions for all ESP32-C6 boards
;;platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.06.10/platform-espressif32.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.07.11/platform-espressif32.zip
;;platform_packages =
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.3
framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.3/esp32-arduino-libs-3.0.3.zip

board = esp32-c6-devkitm-1
build_flags = -g
-DESP32
-DARDUINO_ARCH_ESP32
-DARDUINO_ARCH_ESP32C6
-DCONFIG_IDF_TARGET_ESP32C6=1
-D CONFIG_ASYNC_TCP_USE_WDT=0
-DCO
-DESP32_ARDUINO_NO_RGB_BUILTIN ;; avoids RMT driver abort on startup "E (98) rmt(legacy): CONFLICT! driver_ng is not allowed to be used with the legacy driver"
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
;; ARDUINO_USB_CDC_ON_BOOT
-DFASTLED_NO_FASTLED ;; disable the global "FastLED" object (avoids crash at startup)
lib_deps =
;;https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
https://github.com/softhack007/AsyncTCP.git#ESP32-C6 ;; patched version needed for -C6
makuna/NeoPixelBus @ 2.8.0 ;; latest version neeeded for -C6
${env.lib_deps}


[env:esp32c6dev_8MB]
;; ESP32-C6 "devkit C" with 8MB flash
extends = esp32c6
platform = ${esp32c6.platform}
platform_packages = ${esp32c6.platform_packages}
framework = arduino
board = esp32-c6-devkitc-1
;;build_type = debug

build_unflags = ${common.build_unflags}
;; -D CORE_DEBUG_LEVEL=0
;; -D NDEBUG
build_flags = ${common.build_flags} ${esp32c6.build_flags} -D WLED_RELEASE_NAME=ESP32-C6_8MB
-Wno-volatile ;; -Wno-deprecated-declarations ;; silence compiler warnings
;; -Wno-cpp ;; silence '#pragma warning' messages
;; -D DEBUG -g3 -ggdb
;; -D CORE_DEBUG_LEVEL=4
;; -D WLED_DEBUG
-D WLED_WATCHDOG_TIMEOUT=0
;; -DLOLIN_WIFI_FIX ; might be needed on "-C6 mini"
;;-DARDUINO_USB_CDC_ON_BOOT=1 ;; for virtual CDC USB
-DARDUINO_USB_CDC_ON_BOOT=0 ;; for serial-to-USB chip
-D WLED_DISABLE_INFRARED ;; library not not compatible with -C6
-D WLED_DISABLE_ESPNOW ;; not sure if this will work
-D WLED_DISABLE_ALEXA ;; compile errors
;;-D WLED_DISABLE_WEBSOCKETS ;; not sure if this will work (hacks needed in asyncWebserver)
-D BTNPIN=9
-D LEDPIN=8
upload_speed = 460800
lib_deps = ${esp32c6.lib_deps}
lib_ignore =
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation

board_build.partitions = ${esp32.large_partitions}
board_build.f_flash = 80000000L
board_build.flash_mode = qio
;; board_build.arduino.memory_type = qio_qspi
monitor_filters = esp32_exception_decoder

[env:esp32c6dev_4MB]
;; ESP32-C6 "devkit M" with 4MB flash
extends = env:esp32c6dev_8MB
board = esp32-c6-devkitm-1
board_build.partitions = ${esp32.big_partitions}
build_unflags = ${env:esp32c6dev_8MB.build_unflags} -D WLED_RELEASE_NAME=ESP32-C6_8MB
build_flags = ${env:esp32c6dev_8MB.build_flags} -D WLED_RELEASE_NAME=ESP32-C6_4MB


[esp32s3]
;; generic definitions for all ESP32-S3 boards
platform = espressif32@ ~6.3.2
Expand Down Expand Up @@ -2814,3 +2896,106 @@ monitor_filters = esp32_exception_decoder
;
; RAM: [== ] 20.4% (used 66984 bytes from 327680 bytes)
; Flash: [========= ] 94.8% (used 1491489 bytes from 1572864 bytes)

; Experimental ESP32-P4 Build Environment
[env:ESP32_P4_8MB_Experimental]
build_src_filter = +<**/*.c>
+<**/*.cpp>
+<**/*.S>
-<**/dmx*>
-<**/async-mqtt-client/**>
-<**/methods/Esp32_i2s*>
-<**/espalexa/**>
-<**/DS1307RTC*>
-<**/dependencies/dmx>
platform = https://github.com/troyhacks/platform-espressif32#Arduino/IDF5
platform_packages = framework-arduinoespressif32 @ https://github.com/troyhacks/arduino-esp32#feature/esp32p4
framework-arduinoespressif32-libs @ https://github.com/troyhacks/esp32-arduino-libs#main
toolchain-riscv32-esp @ https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.gz
; board_build.arduino.upstream_packages = no
board = esp32p4
board_build.mcu = esp32p4
board_build.f_cpu = 360000000L
; board_build.arduino.memory_type = qio_opi
board_build.f_flash = 80000000L
build_unflags = -O2
build_flags = -Ofast
-ffast-math
-mstrict-align
-fipa-pta ;; these are very useful, too
-freorder-blocks
-fno-jump-tables -fno-tree-switch-conversion
-Wwrite-strings -fstrict-volatile-bitfields
-D WLEDMM_FASTPATH
-D NDEBUG
-D CORE_DEBUG_LEVEL=0
-D WLED_USE_ETHERNET ;; Coexistence is slower so this build is Ethernet OR WiFi, not both.
-D WLED_DEBUG
-D WLED_DEBUG_HEAP
; -D USERMOD_AUTO_PLAYLIST_DEBUG
; -D SR_DEBUG
-D ARTNET_TROYHACKS
; -D ARTNET_TESTING_ZEROS ;; zero the values to test things Art-Net without lots of blinking lights
; -D ARTNET_SKIP_FRAME
-D ARTNET_TIMER
-D MAX_LEDS=65535 ;; 18432
-D MAX_LEDS_PER_BUS=65535 ;; 18432
-D MAX_LED_MEMORY=6400000 ;; times ONE HUNDRED
-D DEFAULT_LED_TYPE=TYPE_NET_ARTNET_RGB
-D LEDPIN=192 ;; at least get 192.x.x.x set properly for Art-Net
-D BTNPIN=46 ;; Boot button is on GPIO 35 and works as a "button", but polling it messes up Ethernet.
-D CONFIG_ASYNC_TCP_TASK_STACK_SIZE=10072
-D BOARD_HAS_PSRAM
-D WLED_USE_PSRAM
-D WLED_USE_PSRAM_JSON
-D ALL_JSON_TO_PSRAM
-Wno-deprecated-declarations
-Wno-attributes
-D ESP_PLATFORM=1
-D IDF_TARGET=esp32p4
-D WLED_USE_MY_CONFIG
-g
-D ARDUINO_ARCH_ESP32P4
-D CONFIG_IDF_TARGET_ESP32P4
-D IDF_TARGET_ESP32P4
-D FASTLED_NO_FASTLED
-D WLED_RELEASE_NAME=ESP32-P4_8MB
-D WLED_WATCHDOG_TIMEOUT=0
-D USERMOD_AUDIOREACTIVE
-D USERMOD_AUTO_PLAYLIST
-D CONFIG_DSP_OPTIMIZED
; -D UM_AUDIOREACTIVE_USE_ESPDSP_FFT ;; Doesn't work quite yet.
-D UM_AUDIOREACTIVE_USE_NEW_FFT
-D SR_DMTYPE=9 ;; 9 = ES8311 (new) which is the codec chip on the ESP32-P4 EV board
-D SR_ENABLE_DEFAULT
; -D TROYHACKS_FAILSAFE_BUSSES ;; in case you have a bus type causing resets during testing, turn this on, upload, busses will be removed at boot. Then reflash without this flag.
-D WLED_DISABLE_INFRARED
-D WLED_DISABLE_ESPNOW
-D WLED_DISABLE_ALEXA
-D WLED_DISABLE_HUESYNC
-D WLED_DISABLE_MQTT
-D WLED_DISABLE_LOXONE
; -D WLED_DISABLE_ADALIGHT
-D WLED_DISABLE_IMPROV_WIFISCAN
-D USERMOD_ANIMARTRIX
upload_speed = 921600 ;; 460800
lib_deps = https://github.com/Makuna/NeoPixelBus#CORE3 ;; https://github.com/troyhacks/NeoPixelBus#CORE3
https://github.com/softhack007/FastLED.git#ESP32-C6
https://github.com/troyhacks/ESPAsyncWebServer#76d5f50a6c3fd916de2b80602d9b8d0bda46b976 ;; #v2.3.0 ;; https://github.com/softhack007/ESPAsyncWebServer.git#ESP32-C6
https://github.com/softhack007/arduinoFFT.git#develop @ 1.9.2 ;; used for USERMOD_AUDIOREACTIVE - optimized version, 10% faster on -S2/-C3
https://github.com/netmindz/animartrix.git#18bf17389e57c69f11bc8d04ebe1d215422c7fb7
; https://github.com/troyhacks/animartrix.git#6a60443b215863466a4eeb77caac845fd5649d99
lib_ignore = IRremoteESP8266
WebServer
SD
SD_MMC
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.flash_mode = qio
monitor_filters = esp32_exception_decoder, colorize
monitor_speed = 115200
lib_compat_mode = strict
extra_scripts = pre:pio-scripts/set_version.py
pre:pio-scripts/build-html.py
post:pio-scripts/output_bins.py
post:pio-scripts/strip-floats.py
pre:pio-scripts/user_config_copy.py
Loading