generated from mcuw/ESP32-ghbuild-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
94 lines (84 loc) · 2.35 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
; 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
extra_configs = upload_params.ini
; examples
; src_dir = ./examples/serial
; src_dir = ./examples/mac
; src_dir = ./examples/rgb
; src_dir = ./examples/wifi-ap
; src_dir = ./examples/ota
; src_dir = ./examples/ota-telnet
; src_dir = ./examples/ota-webserver
; src_dir = ./examples/ota-manager-rtos
[env]
build_flags =
'-DPIOENV="${PIOENV}"'
'-DSERIAL_DEBUG'
-DCORE_DEBUG_LEVEL=5
-Wno-unused-variable
-Wno-unused-but-set-variable
-Wunreachable-code
extra_scripts = pre:extra_script.py
framework = arduino
lib_deps =
monitor_speed = 115200
; uncomment when using multiple ESPs
; monitor_port = /dev/cu.usbmodem5
platform = espressif32
upload_speed = 921600
[extra]
build_flags_psram =
lib_deps_builtin =
SPI
Wire
lib_deps_external =
lennarthennigs/ESP Telnet @ ^2.2.1
[esp32]
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
${extra.lib_deps_builtin}
${extra.lib_deps_external}
[esp32c6]
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
${extra.lib_deps_builtin}
${extra.lib_deps_external}
platform = https://github.com/platformio/platform-espressif32.git
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
[esp32c6-ota]
upload_speed = 2000000
upload_protocol = espota
; change upload_port after connected to your network instead of the ESP AP
; upload_port = 192.168.4.1
upload_port = 192.168.50.105
[env:esp32-c6-n16]
extends = esp32c6
board = esp32-c6-n16
[env:esp32-c6-n16-ota]
extends = env:esp32-c6-n16
upload_speed = ${esp32c6-ota.upload_speed}
upload_protocol = ${esp32c6-ota.upload_protocol}
upload_port = ${esp32c6-ota.upload_port}
[env:esp32-c6-n4]
extends = esp32c6
board = esp32-c6-n4
[env:esp32-c6-n4-ota]
extends = esp32-c6-n4
upload_speed = ${esp32c6-ota.upload_speed}
upload_protocol = ${esp32c6-ota.upload_protocol}
upload_port = ${esp32c6-ota.upload_port}