-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
285 lines (269 loc) · 7.69 KB
/
platformio.ini
File metadata and controls
285 lines (269 loc) · 7.69 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
; 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
[env]
custom_firmware_version = 1.23.1
build_flags =
-D ARDUINOJSON_USE_LONG_LONG=1
-D _TASK_STATUS_REQUEST
-D _TASK_TIMEOUT
-D _TASK_OO_CALLBACKS
-D _TASK_TIMECRITICAL
-D _TASK_WDT_IDS
-D _TASK_DEBUG
-D _TASK_EXPOSE_CHAIN
lib_deps =
arkhipenko/TaskScheduler@4.0.5
bblanchon/ArduinoJson@7.4.3
https://github.com/Links2004/arduinoWebSockets.git#e3edca4
; links2004/WebSockets@2.7.1
board_build.filesystem = littlefs
build_unflags = -fno-rtti
monitor_speed = 115200
upload_speed = 921600
extra_scripts = pre:insert_firmware_version.py
[dbg]
; build_type = debug
; monitor_filters = esp32_exception_decoder
build_unflags =
-Wno-sign-compare
build_flags =
-Wall
-D ENABLE_TRACE
; -D AC_DEBUG
; -D DEBUG_ESP_PORT=Serial
; -D CONFIG_NIMBLE_CPP_LOG_LEVEL=4
[mainline]
lib_deps =
milesburton/DallasTemperature@3.11.0
claws/BH1750@1.3.0
robtillaart/Max44009@0.6.2
SparkFun BME280@2.0.9
; Adafruit NeoPixel@1.15.1
adafruit/Adafruit ADS1X15@2.6.2
dfrobot/DFRobot_SGP40@1.0.4
lime-labs/Lime Labs HDC2080@1.1.2
git+https://github.com/Atlas-Scientific/Ezo_I2c_lib#5140af6
; esphome/Improv@1.2.3
h2zero/NimBLE-Arduino@2.5.0
thomasfredericks/Bounce2@2.72
dfrobot/DFRobot_GP8XXX@1.1.0
miq19/eModbus@1.7.4
adafruit/RTClib@2.1.4
inamata/PCA9539@1.1.1
beirdo/PCA9536D@2.0.1
[gsm]
lib_deps =
digitaldragon/SSLClient@1.3.2
vshymanskyy/StreamDebugger@1.0.1
; vshymanskyy/TinyGSM@0.12.0
git+https://github.com/moritz89/TinyGSM.git#7c9c8ca
inamata/ArduinoHttpClient@0.6.2
[esp32]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
; Bug in FSImpl.h introduced in 2.0.6. Resolved in 3.0.0-alpha3
; https://github.com/espressif/arduino-esp32/issues/7585#issuecomment-1894210320
; platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32#2.0.5
board = esp32doit-devkit-v1
board_build.partitions = min_spiffs.csv
framework = arduino
build_unflags = ${env.build_unflags}
monitor_speed = ${env.monitor_speed}
upload_speed = ${env.upload_speed}
extra_scripts = ${env.extra_scripts}
board_build.embed_files = data/cert/x509_crt_bundle.bin
[esp32-s3]
build_flags =
-D ARDUINO_ESP32S3
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.31/platform-espressif32.zip
; Bug in FSImpl.h introduced in 2.0.6. Resolved in 3.0.0-alpha3
; https://github.com/espressif/arduino-esp32/issues/7585#issuecomment-1894210320
board = esp32-s3-devkitc-1
board_build.partitions = default_8MB.csv
framework = arduino
build_unflags = ${env.build_unflags}
monitor_speed = ${env.monitor_speed}
extra_scripts = ${env.extra_scripts}
board_build.embed_files = data/cert/x509_crt_bundle.bin
[env:esp32doit-devkit-v1]
custom_firmware_name = ima_esp32
extends = esp32
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
build_flags =
${env.build_flags}
-D DEVICE_TYPE_NAME='"Inamata ESP32"'
-D DEVICE_TYPE_ID='"e339a3eb-65c9-4fa4-8711-de50c50fad35"'
-D MINIMAL_BUILD
[env:esp32doit-devkit-v1-dbg]
custom_firmware_name = ima_esp32_dbg
extends = env:esp32doit-devkit-v1
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env:esp32doit-devkit-v1.build_flags}
${dbg.build_flags}
; -D CORE_DEBUG_LEVEL=5
monitor_filters = esp32_exception_decoder
build_type = debug
board_build.partitions = huge_app.csv
[env:esp32-gsm-plug-dbg]
custom_firmware_name = ima_esp32_gsm_plug_dbg
extends = esp32
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
${gsm.lib_deps}
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env.build_flags}
${dbg.build_flags}
-D DEVICE_TYPE_NAME='"Inamata GSM Plug"'
-D DEVICE_TYPE_ID='"d962e7cc-1844-4c28-9a36-3172dd0fc245"'
-D WEBSOCKETS_NETWORK_TYPE=10
-D TINY_GSM_MODEM_SIM7600
-D LOGGING
-D DEBUG_ESP_PORT=Serial
; -D CORE_DEBUG_LEVEL=5
monitor_filters = esp32_exception_decoder
build_type = debug
board_build.partitions = huge_app.csv
[env:esp32-s3-devkitc-1]
custom_firmware_name = ima_esp32_s3
extends = esp32-s3
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
build_flags =
${env.build_flags}
${esp32-s3.build_flags}
-D DEVICE_TYPE_NAME='"Inamata ESP32-S3"'
-D DEVICE_TYPE_ID='"6aa5d9d7-b1c8-40e1-b6eb-ce6b622b0be1"'
[env:esp32-s3-4g-dbg]
custom_firmware_name = ima_esp32_s3_4g_dbg
extends = esp32-s3
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
${gsm.lib_deps}
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env.build_flags}
${dbg.build_flags}
-D DEVICE_TYPE_NAME='"Inamata ESP32-S3 4G"'
-D DEVICE_TYPE_ID='"60b60acd-a2b9-4215-a860-80c941fbb7dc"'
-D WEBSOCKETS_NETWORK_TYPE=10
-D TINY_GSM_MODEM_A7672X
[env:voc-sensor-mk1]
custom_firmware_name = ima_voc_sensor_mk1
extends = esp32-s3
board = ima_voc_esp32s3
board_build.partitions = default_16MB.csv
upload_flags = --no-stub
build_unflags =
${esp32-s3.build_unflags}
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
build_flags =
${env.build_flags}
${esp32-s3.build_flags}
-D DEVICE_TYPE_NAME='"Inamata VOC Sensor MK1"'
-D DEVICE_TYPE_ID='"d8e85307-f6bb-44db-8387-2022538d5a72"'
-D DEVICE_TYPE_VOC_SENSOR_MK1
-D FIXED_PERIPHERALS_ACTIVE
[env:voc-sensor-mk1-dbg]
custom_firmware_name = ima_voc_sensor_mk1_dbg
extends = env:voc-sensor-mk1
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env:voc-sensor-mk1.build_flags}
${dbg.build_flags}
monitor_filters = esp32_exception_decoder
[env:tiaki-co2-monitor]
custom_firmware_name = ima_tiaki_co2_monitor
extends = esp32-s3
board = ima_tiaki_co2_monitor_esp32s3
board_build.partitions = default_16MB.csv
upload_flags = --no-stub
build_unflags =
${esp32-s3.build_unflags}
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
build_flags =
${env.build_flags}
${esp32-s3.build_flags}
-D ARDUINO_USB_MODE
-D ARDUINO_USB_CDC_ON_BOOT
-D DEVICE_TYPE_NAME='"Inamata Tiaki CO2 Monitor"'
-D DEVICE_TYPE_ID='"ab6fb457-09ce-4772-a48d-96d9dbd8ab36"'
-D DEVICE_TYPE_TIAKI_CO2_MONITOR
-D FIXED_PERIPHERALS_ACTIVE
[env:tiaki-co2-monitor-dbg]
custom_firmware_name = ima_tiaki_co2_monitor_dbg
extends = env:tiaki-co2-monitor
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env:tiaki-co2-monitor.build_flags}
${dbg.build_flags}
[env:fire-data-logger]
custom_firmware_name = ima_fire_data_logger
extends=esp32-s3
board = ima_fire_data_logger_esp32s3
board_build.partitions = default_16MB.csv
lib_deps =
${env.lib_deps}
${mainline.lib_deps}
${gsm.lib_deps}
build_flags =
${env.build_flags}
${esp32-s3.build_flags}
-D DEVICE_TYPE_NAME='"Inamata Fire Data Logger"'
-D DEVICE_TYPE_ID='"0584aa6a-40c7-414e-ac4b-3214f719dcac"'
-D DEVICE_TYPE_FIRE_DATA_LOGGER
-D FIXED_PERIPHERALS_ACTIVE
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=1
-D GSM_NETWORK
-D CONFIGURATION_MANAGER
-D RTC_MANAGER
-D WEBSOCKETS_NETWORK_TYPE=10
-D TINY_GSM_MODEM_SIM7600
-D TINY_GSM_RX_BUFFER=650
[env:fire-data-logger-dbg]
custom_firmware_name = ima_fire_data_logger_dbg
extends = env:fire-data-logger
build_unflags =
${env:fire-data-logger.build_unflags}
${dbg.build_unflags}
build_flags =
${env:fire-data-logger.build_flags}
${dbg.build_flags}
; Log TinyGSM commands
; -D DUMP_AT_COMMANDS
; Log SSLClient actions
; -D DEBUG_ESP_PORT=Serial
; -D CORE_DEBUG_LEVEL=5
; monitor_filters = esp32_exception_decoder
; build_type = debug
; board_build.partitions = huge_app.csv