[platformio]

boards_dir = boards

[env:key800]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream


board_bootloader.file = bootloader_qio_80m.bin
board = key800
framework = arduino
platform_packages = 
    platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
    #2.0.0-rc1
board_build.mcu = esp32s2
description = SweProj KEY800
lib_deps =
    https://git.sweproj.com/pm/esp32S2-usb-host-library.git
    me-no-dev/AsyncTCP
    https://github.com/me-no-dev/ESPAsyncWebServer.git#master
    https://git.sweproj.com/pm/AsyncElegantOTAKEY80.git#master
    https://git.sweproj.com/pm/WebSerialKEY80.git
    https://github.com/bblanchon/ArduinoJson.git#5.x
    https://git.sweproj.com/pm/LITTLEFS.git#master
    https://git.sweproj.com/pm/ElegantOTAKEY80.git#master
    https://github.com/plerup/espsoftwareserial.git#master


upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
monitor_speed = 115200

build_type = debug
board_build.partitions = variants/key800/partitions.csv
BUILD_FLAGS =  -I$PROJECT_DIR/boards/key800 -w 
    '-DCORE_HAS_LIBB64'
    '-DCORE_DEBUG_LEVEL=5'
    '-DLOG_LOCAL_LEVEL=5'
    '-DHWVER=101'
