Looking for Platformio.ini settings for ELECROW ESP32s3 7" HMI

Hello,
I'm migrating from the Arduino IDE to Platformio.

I'm looking for Platformio.ini settings for the ESP32-S3-wroom-1-N4R8 used in the basic 7" display DIS08070H.
This is what I have currently in the platform.ini:
; Flash: 4MB QD, PSRAM: 8MB OT
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino

; Serial monitor settings
monitor_speed = 115200
upload_speed = 921600

; Specify 8MB PSRAM (OPI PSRAM)
board_build.arduino.memory_type = qio_opi
board_build.psram_type = opi
board_upload.flash_size = 4MB

; PSRAM flags
build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1

; Enable 8MB PSRAM
-DCONFIG_SPIRAM_SIZE=0x800000

; LVGL with PSRAM
-DLV_CONF_INCLUDE_SIMPLE
-DLV_MEM_CUSTOM=1

board_build.partitions = default_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.f_cpu = 240000000L

; IMPORTANT: Exclude ui_sources.c
build_src_filter = +<*> -<ui_sources.c>

; Libraries
lib_deps =
lvgl/lvgl@^8.3.11
lovyan03/LovyanGFX@^1.1.16
tamctec/TAMC_GT911@^1.0.2
adafruit/Adafruit BME280 Library@^2.2.2
adafruit/Adafruit Unified Sensor@^1.1.14
adafruit/Adafruit BusIO@^1.14.5

Any help would be wonderful.
Rick

Sign In or Register to comment.