; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:JC4827W543]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
board_build.partitions = huge_app.csv
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
board_build.arduino.memory_type = qio_opi

lib_deps =
    Arduino_GFX=https://github.com/moononournation/Arduino_GFX
    lvgl/lvgl@^8.4.0
    bblanchon/ArduinoJson@^6.21.3
build_flags = 
	-D BOARD_HAS_PSRAM
	-mfix-esp32-psram-cache-issue
	-I lib
    -D CORE_DEBUG_LEVEL=4
    -D ARDUINO_USB_CDC_ON_BOOT=1
    -D ARDUINO_USB_MSC_ON_BOOT=0
    -D ARDUINO_USB_DFU_ON_BOOT=0

debug_tool = esp-builtin
debug_init_break = tbreak app_main
upload_speed = 2000000
monitor_speed = 115200

board_upload.flash_size = 4MB