[platformio] default_envs = esp32_s3_lcd_1_3 [env:esp32_s3_lcd_1_3] platform = espressif32@^6.0.0 framework = arduino board = esp32-s3-devkitc-1 ; Build flags build_flags = ; C++ standard -std=gnu++17 ; Arduino Core debug level (0=None, 1=Error, 3=Info, 5=Verbose) -DCORE_DEBUG_LEVEL=3 ; LVGL configuration -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE ; PSRAM support (LVGL's pool lives there, see lv_conf.h) -DBOARD_HAS_PSRAM ; FreeRTOS configuration -DARDUINO_RUNNING_CORE=1 ; LVGL runs on Core 1 ; USB CDC configuration ; Note: This board uses CH343P USB-UART chip, not native USB CDC ; The default mode (hardware UART) is used automatically ; -DARDUINO_USB_MODE=0 ; Commented out to avoid redefinition warning ; Display configuration -DDISPLAY_WIDTH=240 -DDISPLAY_HEIGHT=240 ; UART configuration -DUART_RX_PIN=1 -DUART_TX_PIN=2 -DUART_BAUD_RATE=115200 ; Include paths (order matters - local overrides come first!) -I include -I include/config -I include/modules -I include/protocol -I src ; Sources: modules + the font/icon assets (plain LVGL C arrays in src/assets) build_src_filter = +<*> + + ; Libraries lib_deps = lovyan03/LovyanGFX@^1.1.0 ; For ST7789VW display lvgl/lvgl@^8.4.0 ; LVGL graphics library ; Upload settings upload_speed = 921600 monitor_speed = 115200 monitor_filters = esp32_exception_decoder colorize ; Memory configuration. The generic devkitc-1 profile assumes 8 MB flash; the ; ESP32-S3-LCD-1.3 has 16 MB (Waveshare wiki + schematic), so declare it and use ; the 16 MB table (two 6.5 MB OTA app slots) - future OTA needs it, and the NVS ; partition stays at 0x9000 so the cached gauge config survives. board_build.flash_mode = qio board_build.psram_type = opi board_build.arduino.memory_type = qio_opi board_upload.flash_size = 16MB board_upload.maximum_size = 16777216 board_build.partitions = default_16MB.csv ; Advanced options build_unflags = -std=gnu++11 build_type = release