Skip to content

Commit 3d311eb

Browse files
committed
Config for expected and Rev2 board with pin conflict
1 parent b63e72e commit 3d311eb

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

platformio_override.ini

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[platformio]
2+
default_envs = Apollo_M-1-Rev2
3+
4+
[env:Apollo_M-1]
5+
extends = env:esp32S3_8MB_PSRAM_M
6+
board = lilygo-t7-s3 ;; closer match for PSRAM and Flash size
7+
board_build.partitions = ${esp32.extreme_partitions} ;; default 16MB WLED partitions
8+
9+
10+
build_unflags = ${env:esp32S3_8MB_M.build_unflags} ;; use the same as "normal" S3 buildenv
11+
; -D ARDUINO_USB_CDC_ON_BOOT=1 ;; fix warning: "ARDUINO_USB_CDC_ON_BOOT" redefined; comment out for Serial debug
12+
${Speed_Flags.build_unflags} ;; to override -Os
13+
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
14+
${common_mm.build_flags_S}
15+
${Speed_Flags.build_flags_V4} ;; -O2 -> optimize for speed instead of size
16+
-D WLED_RELEASE_NAME=Apollo_M-1
17+
-D SERVERNAME='"Apollo M-1"'
18+
; Serial debug enabled
19+
-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 ;; for Hardware-CDC USB mode
20+
; -D ARDUINO_USB_CDC_ON_BOOT=0
21+
-D WLED_DISABLE_ADALIGHT ;; disables serial protocols - recommended for Hardware-CDC USB (Serial RX will receive junk commands when RX pin is unconnected, unless its pulled down by resistor)
22+
; ${common_mm.animartrix_build_flags}
23+
${common_mm.build_disable_sync_interfaces}
24+
-D LOLIN_WIFI_FIX ;; try this in case Wifi does not work
25+
-D WLED_WATCHDOG_TIMEOUT=0 -D CONFIG_ASYNC_TCP_USE_WDT=0
26+
-D WLED_USE_PSRAM -DBOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
27+
-D WLED_USE_PSRAM_JSON -DALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
28+
; -DCONFIG_MBEDTLS_DYNAMIC_BUFFER=1 ;; optional - seems to move more buffers into PSRAM
29+
${common_mm.HUB75_build_flags}
30+
-D DEFAULT_LED_TYPE=103 ; Hub75 64x64
31+
-D SR_DMTYPE=1 -D I2S_SDPIN=16 -D I2S_CKPIN=7 -D I2S_WSPIN=6 -D MCLK_PIN=-1 ;; I2S mic
32+
-D ABL_MILLIAMPS_DEFAULT=0 ;; disable ABL by default, as it does not work with Hub75
33+
-D WLED_DEBUG
34+
35+
36+
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ;; ;; do not include ${esp32.lib_depsV4} !!!!
37+
; ${common_mm.animartrix_lib_deps}
38+
${common_mm.HUB75_lib_deps}
39+
40+
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
41+
monitor_filters = esp32_exception_decoder
42+
43+
[env:Apollo_M-1-Rev2]
44+
; This is the environment for the Apollo M-1 Rev2 board, which has 16MB Flash and 8MB PSRAM, but no pin conflict between octal PSRAM and Hub75.
45+
extends = env:Apollo_M-1
46+
board = adafruit_matrixportal_esp32s3 ;; wrong Flash size, but no pin conflict between octal PSRAM and Hub75
47+
platform = ${esp32.platformV4_xp} ;; 6.5.0 = first platform release supporting matrixportal
48+
platform_packages = ${esp32.platformV4_packages_xp} ;; arduino-esp32 2.0.14 needed - previous versions were missing files for matrixportal
49+
50+
51+
board_build.partitions = ${esp32.large_partitions} ;; default 8MB WLED partitions
52+
; board_build.partitions = ${esp32.extreme_partitions} ;; default 16MB WLED partitions
53+
54+
build_unflags = ${env:Apollo_M-1.build_unflags}
55+
56+
build_flags = ${env:Apollo_M-1.build_flags}
57+
-D ARDUINO_ADAFRUIT_MATRIXPORTAL_ESP32S3 ;; Needed to keep the pinout you are using on your board

0 commit comments

Comments
 (0)