94 lines
3.5 KiB
INI
94 lines
3.5 KiB
INI
; ============================================================================
|
|
; PlatformIO Configuration for Waveshare ESP32-S3-Touch-LCD-5B
|
|
; Project: ESP32-S3-LCD-5B (Automotive Display Controller)
|
|
; ============================================================================
|
|
|
|
[platformio]
|
|
default_envs = waveshare_esp32_s3_lcd_5b
|
|
|
|
; ============================================================================
|
|
; Environment Configuration
|
|
; ============================================================================
|
|
[env:waveshare_esp32_s3_lcd_5b]
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Platform & Framework
|
|
; ----------------------------------------------------------------------------
|
|
; Using pioarduino platform for Arduino core 3.3.3 (ESP-IDF v5.5.1)
|
|
; Official PlatformIO only supports Arduino core 2.x
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.33/platform-espressif32.zip
|
|
framework = arduino
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Board Configuration
|
|
; ----------------------------------------------------------------------------
|
|
; Custom board definition for Waveshare ESP32-S3-Touch-LCD-5B
|
|
; Hardware: ESP32-S3-WROOM-1-N16R8 (16MB Flash + 8MB OPI PSRAM)
|
|
; Board definition is in boards/esp32-s3-wroom-1-n16r8.json
|
|
board = esp32-s3-wroom-1-n16r8
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Upload & Monitor Settings
|
|
; ----------------------------------------------------------------------------
|
|
upload_speed = 921600
|
|
monitor_speed = 115200
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Library Dependencies
|
|
; ----------------------------------------------------------------------------
|
|
lib_deps =
|
|
; Display and UI libraries (from GitHub - not yet in PlatformIO registry)
|
|
https://github.com/esp-arduino-libs/ESP32_Display_Panel.git#v1.0.4
|
|
https://github.com/esp-arduino-libs/ESP32_IO_Expander.git#v1.1.1
|
|
esp-arduino-libs/esp-lib-utils@^0.2.0
|
|
lvgl/lvgl@^8.4.0
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Build Flags & Source Directories
|
|
; ----------------------------------------------------------------------------
|
|
; Include UI, display, and modules directories as source directories
|
|
build_src_filter = +<*> +<modules/*> +<../include/ui/*> +<../include/display/*>
|
|
|
|
build_flags =
|
|
; C++ standard (required for ESP32_Display_Panel)
|
|
-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
|
|
-DBOARD_HAS_PSRAM
|
|
-mfix-esp32-psram-cache-issue
|
|
|
|
; RGB LCD Framebuffer Configuration for large displays
|
|
; Force RGB LCD to use PSRAM for framebuffers (1024x600 requires ~2.4MB)
|
|
-DESP_PANEL_LCD_RGB_BUFFER_NUMS=2
|
|
-DESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE=0
|
|
-DESP_PANEL_LCD_RGB_REFRESH_MODE=0
|
|
|
|
; FreeRTOS configuration
|
|
-DARDUINO_RUNNING_CORE=1 ; LVGL runs on Core 1
|
|
|
|
; Include paths (order matters - local overrides come first!)
|
|
-I include
|
|
-I include/config
|
|
-I include/display
|
|
-I include/protocol
|
|
-I include/ui
|
|
-I src
|
|
|
|
; ----------------------------------------------------------------------------
|
|
; Advanced Options
|
|
; ----------------------------------------------------------------------------
|
|
build_unflags =
|
|
-std=gnu++11
|
|
|
|
extra_scripts =
|
|
|
|
build_type = release
|