-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
403 lines (324 loc) · 11.8 KB
/
platformio.ini
File metadata and controls
403 lines (324 loc) · 11.8 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
;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 = esp07s
; default_envs = esp12e
; default_envs = d1_mini
; default_envs = d1_mini_OTA
; default_envs = d1_mini_pro
; default_envs = lolin_d32_pro
; default_envs = lolin_d32_pro_OTA
; default_envs = mhetesp32minikit
default_envs = IoT-PostBox_v1
[env]
framework = arduino
monitor_speed = 115200
upload_speed = 921600
; monitor_filters = time, default, esp32_exception_decoder
; board_build.filesystem = littlefs
[common_env_data]
framework = arduino
; For USB update:
; upload_port=COM4
; For OTA update:
; Uncoment the upload protocol and select the port target
; upload_protocol = espota
; upload_port = iotdevice
; To select ota password and port:
; upload_flags =
; --auth=otapwd
; --port=8266
; upload_port = IoLed.local
; upload_port = 192.168.1.242
; upload_port = iotbutton.lan
monitor_speed = 115200
upload_speed = 921600
; To configure esp8266 flash memory as 4M (3M SPIFFS):
; board_build.ldscript = eagle.flash.4m3m.ld
; lib_ldf_mode = deep+
lib_deps_base =
; FS
; WiFiClientSecure
; // Using AsyncWebServer LinkedList lib can not be used because there is a class
; // using the same name. For that reason, for now we use SimpleList until we fix
; // this using namespace for example.
; ivanseidel/LinkedList @ 0.0.0-alpha+sha.dac3874d28
; LinkedList=https://github.com/ivanseidel/LinkedList.git#v1.3.2
; https://github.com/spacehuhn/SimpleList
; PubSubClient
; bblanchon/ArduinoJson@>=6
; links2004/WebSockets @ ^2.3.2
; ESP8266FtpServer
; ESP8266_SSD1306
; thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays @ ^4.2.0
; me-no-dev/ESP Async WebServer @ ^1.2.3 ; Until PR is not solved, use this other
; https://github.com/paclema/ESPAsyncWebServer.git#namespace-ESPAsyncWebServer
paclema/WebConfigServer @ ^3.2.0
paclema/MQTTClient @ ^1.1.0
paclema/PowerManagement@^0.3.0
fastled/FastLED @ 3.10.0
mcci-catena/MCCI LoRaWAN LMIC library @ ^5.0.1
; ArduinoOTA
lib_deps_base_esp8266 =
; ESP8266WiFi
; ESP8266WiFiMulti
; ESP8266WebServer
; ESPAsyncTCP
; ESP8266mDNS
lib_deps_base_esp32 =
; Wifi
; WiFiMulti
; WebServer
; AsyncTCP
; ESPmDNS
build_flags =
-w ; To remove compilation warnings
-D USE_ASYNC_WEBSERVER ; To use Async webserver defining cpp files:
-D MAX_WS_FUNCTIONS=20 ; To configure max WS dashboard function printed
-D CONFIG_JSON_SIZE=4096 ; To define WebConfigServer max config.json size
; -D ENABLE_SERIAL_DEBUG ; To enable Serial debug
; -D DEBUG_ESP_CORE ; More debug levels here: https://docs.platformio.org/en/latest/platforms/espressif8266.html#debug-level
; -DDEBUG_ESP_WIFI
; -DDEBUG_ESP_OTA
[env:esp32base]
platform = https://github.com/pioarduino/platform-espressif32.git#develop
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
[env:d1_mini]
platform = espressif8266
framework = ${common_env_data.framework}
board = d1_mini
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp8266}
build_flags = ${common_env_data.build_flags}
[env:d1_mini_OTA]
platform = espressif8266
framework = ${common_env_data.framework}
board = d1_mini
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp8266}
upload_protocol = espota
upload_port = iotdevice
upload_flags =
--port=8266
build_flags = ${common_env_data.build_flags}
[env:d1_mini_pro]
platform = espressif8266
framework = ${common_env_data.framework}
board = d1_mini_pro
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp8266}
build_flags =
${common_env_data.build_flags}
; -Wl,-Teagle.flash.16m14m.ld
; For now we can use only the half of the 16MB with this partition schema:
board_build.ldscript = eagle.flash.8m6m.ld
[env:esp12e]
platform = espressif8266
framework = ${common_env_data.framework}
board = esp12e
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp8266}
build_flags = ${common_env_data.build_flags}
upload_port = COM10
monitor_port = COM10
[env:esp07s]
platform = espressif8266
framework = ${common_env_data.framework}
board = esp07s
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp8266}
build_flags = ${common_env_data.build_flags}
upload_port = COM9
monitor_port = COM9
[env:lolin_d32_pro]
platform = espressif32
board = lolin_d32
framework = ${common_env_data.framework}
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D USE_ASYNC_WEBSERVER
board_build.partitions = ./board_partitions/esp32/default_16MB.csv
; board_build.partitions = ./board_partitions/esp32/default.csv
[env:lolin_d32_pro_OTA]
platform = espressif32
board = lolin_d32
framework = ${common_env_data.framework}
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
upload_protocol = espota
upload_port = iotdevice
upload_flags =
--port=3232
build_flags =
${common_env_data.build_flags}
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D USE_ASYNC_WEBSERVER
board_build.partitions = ./board_partitions/esp32/default_16MB.csv
; board_build.partitions = ./board_partitions/esp32/default.csv
[env:mhetesp32minikit]
platform = espressif32
board = mhetesp32minikit
framework = ${common_env_data.framework}
platform_packages =
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
framework-arduinoespressif32 @ https://github.com/paclema/arduino-esp32#lwip_enabled
toolchain-xtensa32@2.80400 ; LWIP needs toolchain-xtensa32 >= v8.4.0
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
upload_port = COM5
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
-D USE_ASYNC_WEBSERVER
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
[env:mhetesp32devkit]
platform = espressif32
board = mhetesp32devkit
framework = ${common_env_data.framework}
platform_packages =
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
framework-arduinoespressif32 @ https://github.com/paclema/arduino-esp32#lwip_enabled
toolchain-xtensa32@2.80400 ; LWIP needs toolchain-xtensa32 >= v8.4.0
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
upload_port = COM17
monitor_port = COM17
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
[env:mhetesp32devkit_stable]
platform = espressif32
board = mhetesp32devkit
framework = ${common_env_data.framework}
; platform_packages =
; ; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
; framework-arduinoespressif32 @ https://github.com/paclema/arduino-esp32#lwip_enabled
; toolchain-xtensa32@2.80400 ; LWIP needs toolchain-xtensa32 >= v8.4.0
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
upload_port = COM17
monitor_port = COM17
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
[env:az-delivery-devkit-v4]
platform = espressif32
board = az-delivery-devkit-v4
framework = ${common_env_data.framework}
platform_packages =
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
framework-arduinoespressif32 @ https://github.com/paclema/arduino-esp32#lwip_enabled
toolchain-xtensa32@2.80400 ; LWIP needs toolchain-xtensa32 >= v8.4.0
board_build.mcu = esp32
board_build.f_cpu = 240000000L
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
upload_port = COM6
monitor_port = COM6
; lib_ldf_mode = ${common_env_data.lib_ldf_mode}
lib_deps =
${common_env_data.lib_deps_base}
${common_env_data.lib_deps_base_esp32}
build_flags =
${common_env_data.build_flags}
-D LED_BUILTIN=-1
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
[env:IoT-PostBox_v1]
extends = env:esp32base
# platform = https://github.com/pioarduino/platform-espressif32.git#develop ; v3.3.0 is giving issues using I2C https://github.com/espressif/arduino-esp32/issues/11228
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.12/platform-espressif32.zip
board = iot-postbox_v1
board_build.variants_dir = boards/variants
; board_build.partitions = huge_app.csv
; board_build.partitions = ./board_partitions/esp32/default_16MB.csv
board_build.partitions = ./board_partitions/esp32/iotpostboxv1_16MB.csv
; TODO: try to upload bootloader
; board_upload.flash_extra_images =
; 0x10000, boards/variants/iotpostbox_v1/bootloader.bin
; 0x410000, boards/variants/iotpostbox_v1/tinyuf2.bin
; upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
build_flags =
${env:esp32base.build_flags}
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
-D LED_BUILTIN=LDO2_EN_PIN
[env:IoT-PostBox_v1_4MB]
extends = env:esp32base
platform = https://github.com/pioarduino/platform-espressif32.git#develop ; v3.3.0 is giving issues using I2C https://github.com/espressif/arduino-esp32/issues/11228
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.12/platform-espressif32.zip
board = iot-postbox_v1_4mb
board_build.variants_dir = boards/variants
board_build.partitions = ./board_partitions/esp32/iotpostboxv1_4MB.csv
; TODO: try to upload bootloader
; board_upload.flash_extra_images =
; 0x10000, boards/variants/iotpostbox_v1/bootloader.bin
; 0x410000, boards/variants/iotpostbox_v1/tinyuf2.bin
; upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
build_flags =
${env:esp32base.build_flags}
; -D CORE_DEBUG_LEVEL=5 ;To enable ESP32 core debug
-D LED_BUILTIN=LDO2_EN_PIN