-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
49 lines (45 loc) · 1.53 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; 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]
default_envs = ota
[env]
;platform = https://github.com/platformio/platform-espressif32.git
platform = [email protected]
board = esp32-poe
framework = espidf, arduino
monitor_speed = 115200
platform_packages =
; use a special branch
;framework-espidf @ https://github.com/espressif/esp-idf.git#release/v4.2
;framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.0
framework-arduinoespressif32 @ https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0
;framework-arduinoespressif32 @ https://github.com/mixa3607/arduino-esp32#idf-release/v4.0
lib_deps = https://github.com/yorenschriever/esp32_https_server
board_build.partitions = arduino_default_partitions.csv
[env:usb]
;enable this for usb upload
extra_scripts = pre:generate_cert.py
upload_protocol = esptool
upload_port = /dev/cu.wchusbserial*
upload_speed = 460800
[env:ota]
;enable this for ota upload
extra_scripts =
pre:generate_cert.py
upload_protocol = custom
upload_port = hyperion.local
upload_flags =
-F
image=@$SOURCE
$UPLOAD_PORT:81/update
--progress-bar
--connect-timeout
10
upload_command = echo curl $UPLOAD_FLAGS & curl $UPLOAD_FLAGS