Update env to support multiple ESP32 types

This commit is contained in:
Nacho 2026-05-27 21:00:23 +02:00
parent 56ce03f34e
commit 9e23682068

View File

@ -8,23 +8,38 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
;[env:alt]
;platform = espressif32
;board = 4d_systems_esp32s3_gen4_r8n16
;framework = arduino
;lib_deps = TFT_eSPI, fbiego/ESP32Time@^2.0.6, electroniccats/MPU6050@^1.4.3
;monitor_filters = esp32_exception_decoder
;monitor_speed = 115200
;
;build_flags =
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
; ; These ensure the N16R8 uses the fast Octal (OPI) mode
; -DARDUINO_USB_CDC_ON_BOOT=1
; -DDEV_UNIT
; -DDEBUG
[env:s3-full]
platform = espressif32
board = 4d_systems_esp32s3_gen4_r8n16
framework = arduino
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
[env:alt]
lib_deps =
TFT_eSPI
fbiego/ESP32Time@^2.0.6
electroniccats/MPU6050@^1.4.3
; --- Hardware & Memory Topology ---
board_build.arduino.psram = enabled
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
; FIX 2: Explicitly matches the 'mode:DIO' your ROM is reporting
board_build.flash_mode = dio
board_build.arduino.memory_type = dio_opi
build_flags =
-DBOARD_HAS_PSRAM
; FIX 1: Forces all Serial.print logs to stay on the hardware UART port
-DARDUINO_USB_CDC_ON_BOOT=0
-DDEV_UNIT
-DDEBUG
upload_port = COM8
monitor_port = COM8
[env:s3-supermini]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
@ -45,3 +60,5 @@ build_flags =
; Ensure partition table fits 4MB
board_build.partitions = default.csv
lib_deps = TFT_eSPI, fbiego/ESP32Time@^2.0.6, electroniccats/MPU6050@^1.4.3
upload_port = COM5
monitor_port = COM5