; 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:esp32dev]
; platform = espressif32
; board = esp32dev
; framework = arduino
; monitor_speed = 115200
; ;upload_speed=115200
; ; upload_port = COM31
; ;monitor_port = com5
; lib_deps = 
; 	vshymanskyy/TinyGSM@^0.11.5
; 	knolleary/PubSubClient@^2.8
; 	plerup/EspSoftwareSerial@^6.15.2
; 	arduino-libraries/ArduinoHttpClient@^0.4.0
;     janelia-arduino/Vector@^1.2.2
; build_flags:
;     -DVERSION=${this.custom_prog_version}
; extra_scripts = pre:extra_script.py
; custom_prog_version = V2.6    


[env:esp32-s3-devkitc-1]
; platformio/espressif32@^6.4.0
; platform = espressif32
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.11/platform-espressif32.zip
board =  esp32-s3-devkitc-1

framework = arduino
platform_packages =
    ; toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
    ;  framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master
; board_upload.flash_size=4MB
board_upload.flash_size=4MB
board_upload.maximum_size=327680
board_upload.maximum_ram_size=4194304
board_build.partitions = default.csv
board_build.flash_mode = dio
; board_upload.psram_size =2MB
; lib_deps = 
; 	vshymanskyy/TinyGSM@^0.11.5
; 	knolleary/PubSubClient@^2.8
; 	plerup/EspSoftwareSerial@^6.15.2
; 	arduino-libraries/ArduinoHttpClient@^0.4.0
;     janelia-arduino/Vector@^1.2.2
; 	paulstoffregen/OneWire@^2.3.7
; 	milesburton/DallasTemperature@^3.11.0
; 	adafruit/Adafruit MLX90614 Library@^2.1.3
; 	sparkfun/SparkFun u-blox Arduino Library@^1.8.11
; 	khoih-prog/WebServer_ESP32_W5500@^1.5.3

build_flags:
    -DVERSION=${this.custom_prog_version}
    -DARDUINO_USB_CDC_ON_BOOT=1
    ; -DCONFIG_SOC_SDMMC_HOST_SUPPORTED=y,
    ; -DCONFIG_TINYUSB_MSC_ENABLED=y
	;-DDINBIAO

extra_scripts = pre:extra_script.py
custom_prog_version = V3.2
debug_tool.upload_protocol =  esp-builtin
monitor_speed = 115200        ; 你当前是 921600，若改回 115200 请同时调整
monitor_filters = esp32_exception_decoder