; 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

[platformio]
boards_dir = boards

[env]
lib_extra_dirs = ${PROJECT_DIR} 
platform = espressif32@6.7.0
framework = arduino
upload_speed =  921600
monitor_speed = 115200
build_flags =
    -DBOARD_HAS_PSRAM

    ; Enable -DARDUINO_USB_CDC_ON_BOOT will start printing and wait for terminal access during startup
    -DARDUINO_USB_CDC_ON_BOOT=1

    ; Enable -UARDUINO_USB_CDC_ON_BOOT will turn off printing and will not block when using the battery
    ; -UARDUINO_USB_CDC_ON_BOOT 


    -DCORE_DEBUG_LEVEL=0
    
    ; -Wtype-limits
    ; -Wall
    ; -Werror
    
monitor_filters =
	default
	esp32_exception_decoder

lib_deps = 
    # core libraries
    SPI
    Wire
    FS
    SPIFFS
    
    # external libraries
    lewisxhe/SensorLib @ ^0.1.9
    lennarthennigs/Button2 @ ^2.3.2
    https://github.com/Xinyuan-LilyGO/LilyGo-EPD47#esp32s3

[env:T5-ePaper-S3]
extends = env
board = T5-ePaper-S3
build_flags = ${env.build_flags}
    -DLILYGO_T5_EPD47_S3
