forked from sblantipodi/glow_worm_luciferin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
405 lines (391 loc) · 13.5 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
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
404
405
; 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]
extra_configs = secrets.ini
[common_env_data]
platform_esp8266 = espressif8266@4.2.1
board_esp8266 = d1_mini_lite
f_cpu_esp8266 = 160000000L
monitor_filters_esp8266 = esp8266_exception_decoder
platform_esp32 = espressif32@6.4.0
monitor_filters_esp32 = esp32_exception_decoder
framework = arduino
monitor_speed = 115200
upload_speed = 921600
filesystem = littlefs
extra_scripts =
pre:platformio_version_increment/version_increment_pre.py
post:platformio_version_increment/version_increment_post.py
lib_deps =
bblanchon/ArduinoJson@6.17.2
knolleary/PubSubClient
makuna/NeoPixelBus
lib_extra_dirs = arduino_bootstrapper
common_build_flags =
'-D AUTHOR="Vogon Devs"'
'-D SERIAL_RATE=500000'
'-D DEBUG_QUEUE_MSG=false'
'-D DISPLAY_ENABLED=false'
[env:glowwormluciferinfull_esp8266]
platform = ${common_env_data.platform_esp8266}
board = ${common_env_data.board_esp8266}
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = ${common_env_data.filesystem}
monitor_filters = ${common_env_data.monitor_filters_esp8266}
board_build.f_cpu = ${common_env_data.f_cpu_esp8266}
monitor_port = COM4
upload_port = COM4
lib_deps = ${common_env_data.lib_deps}
extra_scripts = ${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=50'
'-D SMALL_JSON_OBJECT_SIZE=50'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GLOW_WORM_ESP8266"'
'-D MICROCONTROLLER_OTA_PORT=8266'
'-D WIFI_SIGNAL_STRENGTH=20.5'
'-D MICROCONTROLLER_IP="192.168.1.52"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinlight_esp8266]
platform = ${common_env_data.platform_esp8266}
board = ${common_env_data.board_esp8266}
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = ${common_env_data.filesystem}
monitor_filters = ${common_env_data.monitor_filters_esp8266}
board_build.f_cpu = ${common_env_data.f_cpu_esp8266}
monitor_port = COM4
upload_port = COM4
lib_deps = ${common_env_data.lib_deps}
extra_scripts = ${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINLIGHT'
${common_env_data.common_build_flags}
[env:glowwormluciferinfull_esp32]
platform = ${common_env_data.platform_esp32}
board = esp32dev
board_build.mcu = esp32
board_build.flash_mode = qio
board_build.f_flash = 80000000L
board_upload.flash_size = 4MB
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
board_build.f_cpu = 240000000L
monitor_port = COM7
upload_port = COM7
lib_deps = ${common_env_data.lib_deps}
lib_ldf_mode = deep
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.38"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=200'
'-D SMALL_JSON_OBJECT_SIZE=200'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GLOW_WORM_ESP32"'
'-D MICROCONTROLLER_OTA_PORT=8379'
'-D WIFI_SIGNAL_STRENGTH=20.5'
'-D MICROCONTROLLER_IP="192.168.1.82"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinlight_esp32]
platform = ${common_env_data.platform_esp32}
board = esp32dev
board_build.mcu = esp32
board_build.flash_mode = qio
board_build.f_flash = 80000000L
board_upload.flash_size = 4MB
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
board_build.f_cpu = 240000000L
monitor_port = COM9
upload_port = COM9
lib_deps = ${common_env_data.lib_deps}
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINLIGHT'
${common_env_data.common_build_flags}
[env:glowwormluciferinfull_esp32c3cdc]
platform = ${common_env_data.platform_esp32}
board = lolin_c3_mini
board_build.mcu = esp32c3
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
monitor_port = COM10
upload_port = COM10
lib_deps = ${common_env_data.lib_deps}
lib_ldf_mode = deep
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D ARDUINO_USB_MODE=1'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=200'
'-D SMALL_JSON_OBJECT_SIZE=200'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GW_ESP32_C3"'
'-D MICROCONTROLLER_OTA_PORT=8382'
'-D WIFI_SIGNAL_STRENGTH=8.5'
'-D MICROCONTROLLER_IP="192.168.1.42"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinlight_esp32c3cdc]
platform = ${common_env_data.platform_esp32}
board = lolin_c3_mini
board_build.mcu = esp32c3
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
monitor_port = COM10
upload_port = COM10
lib_deps = ${common_env_data.lib_deps}
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINLIGHT'
'-D ARDUINO_USB_MODE=1'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
${common_env_data.common_build_flags}
[env:glowwormluciferinfull_esp32s2]
platform = ${common_env_data.platform_esp32}
board = lolin_s2_mini
board_build.mcu = esp32s2
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes
monitor_port = //./COM20
upload_port = //./COM20
lib_deps = ${common_env_data.lib_deps}
lib_ldf_mode = deep
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D ARDUINO_USB_MODE=0'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=200'
'-D SMALL_JSON_OBJECT_SIZE=200'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GW_ESP32_S2"'
'-D MICROCONTROLLER_OTA_PORT=8385'
'-D WIFI_SIGNAL_STRENGTH=8.5'
'-D MICROCONTROLLER_IP="192.168.1.43"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinlight_esp32s2]
platform = ${common_env_data.platform_esp32}
board = lolin_s2_mini
board_build.mcu = esp32s2
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes
monitor_port = //./COM20
upload_port = //./COM20
lib_deps = ${common_env_data.lib_deps}
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
'-D TARGET_GLOWWORMLUCIFERINLIGHT'
'-D ARDUINO_USB_MODE=0'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
${common_env_data.common_build_flags}
[env:glowwormluciferinfull_esp32s3cdc]
platform = ${common_env_data.platform_esp32}
board = lolin_s3_mini
board_build.mcu = esp32s3
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
monitor_port = COM11
upload_port = COM11
lib_deps = ${common_env_data.lib_deps}
lib_ldf_mode = deep
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D ARDUINO_USB_MODE=1'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=200'
'-D SMALL_JSON_OBJECT_SIZE=200'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GW_ESP32_S3"'
'-D MICROCONTROLLER_OTA_PORT=8386'
'-D WIFI_SIGNAL_STRENGTH=20.5'
'-D MICROCONTROLLER_IP="192.168.1.44"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinfull_esp32s3]
platform = ${common_env_data.platform_esp32}
board = lolin_s3_mini
board_build.mcu = esp32s3
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
monitor_port = COM6
upload_port = /dev/ttyUSB1
lib_deps = ${common_env_data.lib_deps}
lib_ldf_mode = deep
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
'-D TARGET_GLOWWORMLUCIFERINFULL'
'-D ARDUINO_USB_MODE=0'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="255.255.255.0"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=350'
'-D MAX_JSON_OBJECT_SIZE=200'
'-D SMALL_JSON_OBJECT_SIZE=200'
'-D MQTT_MAX_PACKET_SIZE=8192'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D WIFI_DEVICE_NAME="GW_ESP32_S3"'
'-D MICROCONTROLLER_OTA_PORT=8386'
'-D WIFI_SIGNAL_STRENGTH=20.5'
'-D MICROCONTROLLER_IP="192.168.1.44"'
'-D IMPROV_ENABLED=30000'
${common_env_data.common_build_flags}
[env:glowwormluciferinlight_esp32s3]
platform = ${common_env_data.platform_esp32}
board = lolin_s3_mini
board_build.mcu = esp32s3
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_speed = ${common_env_data.upload_speed}
board_build.filesystem = littlefs
monitor_filters = ${common_env_data.monitor_filters_esp32}
monitor_port = COM11
upload_port = COM11
lib_deps = ${common_env_data.lib_deps}
extra_scripts =
post:platformio_version_increment/esp32_create_factory_bin_post.py
${common_env_data.extra_scripts}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
'-D TARGET_GLOWWORMLUCIFERINLIGHT'
'-D ARDUINO_USB_MODE=0'
'-D ARDUINO_USB_CDC_ON_BOOT=1'
${common_env_data.common_build_flags}
[secrets]
wifi_ssid = XXX
wifi_password = XXX
mqtt_username = XXX
mqtt_password = XXX
ota_password = 123StellaStella