79 lines
1.8 KiB
INI
79 lines
1.8 KiB
INI
[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
|
|
-DBOARD_HAS_PSRAM
|
|
-mfix-esp32-psram-cache-issue
|
|
|
|
; 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/display
|
|
-I include/modules
|
|
-I include/protocol
|
|
-I include/ui
|
|
-I src
|
|
|
|
; Source directories (include UI files from include/ui)
|
|
build_src_filter = +<*> +<modules/*> +<../include/ui/*> +<../include/display/*>
|
|
|
|
; 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
|
|
board_build.flash_mode = qio
|
|
board_build.psram_type = opi
|
|
board_build.arduino.memory_type = qio_opi
|
|
|
|
; Partition table (optional - for larger apps)
|
|
; board_build.partitions = default_16MB.csv
|
|
|
|
; Advanced options
|
|
build_unflags =
|
|
-std=gnu++11
|
|
|
|
build_type = release
|