-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
208 lines (194 loc) · 6.28 KB
/
Copy pathplatformio.ini
File metadata and controls
208 lines (194 loc) · 6.28 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
; 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 = esp_devcore
[env]
; platform = espressif8266
; board = esp12e
framework = arduino
;#only use lowercase in esp_name
name_esp_core = esp_core
pw_esp_core = 0000
upload_port_esp_core = 192.168.201.53
name_esp_hall = esp_hall
pw_esp_hall = 0002
; upload_port_esp_hall = 192.168.201.65
upload_port_esp_hall = 192.168.1.103
build_flags_external =
; -frtti ; жрет много памяти, нужно для typeid(T).name()
-Wno-register
-Wno-deprecated-declarations
-I../amigo_core
; -I../amigo_core/include
; -L../amigo_core
; -L../amigo_core/src
; build_flags =
; -D VERSION=1.2.3
; -D DEBUG=1
; lib_deps_builtin =
; SPI
; Wire
; lib_deps_external =
lib_extra_dirs =
../amigo_core
../amigo_lib
lib_ldf_mode = deep ; могу переходить к библиотеке и редактировать её
[env:esp32-c3-core-com]
; platform = espressif32
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-c3-devkitm-1
; change microcontroller
; board_build.mcu = esp32c3
; change MCU frequency
; board_build.f_cpu = 160000000L
build_flags =
; -D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_core}\"
-D OTA_PASS=\"${env.pw_esp_core}\"
-D CORE_NTP
${env.build_flags_external}
upload_speed = 921600
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
; WiFiUdp
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
; Ticker ; ???
; arduino-libraries/NTPClient ; arduino-libraries/NTPClient @ ~3.2.1
; mcxiaoke/ESPDateTime ; mcxiaoke/ESPDateTime @ ^1.0.4
gmag11/NtpClientLib
[env:esp32-c3-core-ota]
platform = espressif32
board = esp32-c3-devkitm-1
; change microcontroller
board_build.mcu = esp32c3
; change MCU frequency
; board_build.f_cpu = 160000000L
build_flags =
; -D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_core}\"
-D OTA_PASS=\"${env.pw_esp_core}\"
-D CORE_NTP
${env.build_flags_external}
upload_speed = 921600
upload_protocol = espota
upload_flags = --auth=${env.pw_esp_core}
; upload_port = ${env.name_esp_core}.local
upload_port = ${env.upload_port_esp_core}
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
; WiFiUdp
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
; Ticker ; ???
; arduino-libraries/NTPClient ; arduino-libraries/NTPClient @ ~3.2.1
; mcxiaoke/ESPDateTime ; mcxiaoke/ESPDateTime @ ^1.0.4
gmag11/NtpClientLib
[env:esp_core_com]
platform = espressif8266
board = esp12e
board_build.flash_mode = dio ; использование dio10 для наших задач
board_build.ldscript = eagle.flash.4m.ld
build_flags =
; -D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_core}\"
-D OTA_PASS=\"${env.pw_esp_core}\"
${env.build_flags_external}
upload_speed = 921600
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
ESPAsyncUDP ; me-no-dev/ESPAsyncUDP@^1.1.0
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
Ticker ; ???
; ESP8266WiFi
[env:esp_core_ota]
platform = espressif8266
board = esp12e
board_build.flash_mode = dio ; использование dio10 для наших задач
board_build.ldscript = eagle.flash.4m.ld
build_flags =
; -D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_core}\"
-D OTA_PASS=\"${env.pw_esp_core}\"
${env.build_flags_external}
upload_speed = 921600
upload_protocol = espota
upload_flags = --auth=${env.pw_esp_core}
; upload_port = ${env.name_esp_core}.local
upload_port = ${env.upload_port_esp_core}
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
ESPAsyncUDP ; me-no-dev/ESPAsyncUDP@^1.1.0
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
Ticker ; ???
; ESP8266WiFi
[env:esp_hall_com]
platform = espressif8266
board = esp12e
board_build.flash_mode = dio ; использование dio10 для наших задач
board_build.ldscript = eagle.flash.4m.ld
build_flags =
-D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_hall}\"
-D OTA_PASS=\"${env.pw_esp_hall}\"
${env.build_flags_external}
upload_speed = 921600
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
ESPAsyncUDP ; me-no-dev/ESPAsyncUDP@^1.1.0
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
Ticker ; ???
; ESP8266WiFi
[env:esp_hall_ota]
platform = espressif8266
board = esp12e
board_build.flash_mode = dio ; использование dio10 для наших задач
board_build.ldscript = eagle.flash.4m.ld
build_flags =
-D USER_AREA ; убрать, чтобы собрать только ядро
-D OTA_NAME=\"${env.name_esp_hall}\"
-D OTA_PASS=\"${env.pw_esp_hall}\"
${env.build_flags_external}
upload_speed = 921600
upload_protocol = espota
upload_flags = --auth=${env.pw_esp_hall}
; upload_port = ${env.name_esp_hall}.local
upload_port = ${env.upload_port_esp_hall}
monitor_speed = 115200
lib_deps =
AsyncMqttClient ; marvinroger/AsyncMqttClient@^0.9.0
ESPAsyncUDP ; me-no-dev/ESPAsyncUDP@^1.1.0
PaulStoffregen/Time ; PaulStoffregen/Time@^1.6.1
Ticker ; ???
; ESP8266WiFi
; lib_ldf_mode = deep ; могу переходить к библиотеке и редактировать её
; build_flags =
; -Wno-register
; -Wno-deprecated-declarations
; lib_deps =
; ${env.lib_deps_external}
; [env:nodemcuv2]
; platform = espressif8266
; board = nodemcuv2
; framework = arduino
; upload_speed = 921600
; monitor_baud = 115200
; [env:nodemcuv2_ota]
; platform = espressif8266
; board = nodemcuv2
; framework = arduino
; upload_speed = 921600
; monitor_baud = 115200
; upload_flags = --auth=${ota.esp_pw}
; upload_port = ${ota.esp_name}.local
; build_flags = -DESP_NAME=\"${ota.esp_name}\" -DESP_PW=\"${ota.esp_pw}\"