forked from opendata-stuttgart/sensors-software
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplatformio.ini
350 lines (316 loc) · 11.7 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
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
; default_envs = nodemcuv2_en
src_dir = .
; -DDEBUG_ESP_PORT=Serial
; -DDEBUG_ESP_WIFI
; -D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK221
; Reenable when we have a way to protect the UI from internet access
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_HIGHER_BANDWIDTH
;
[common]
build_flags =
-DVTABLES_IN_FLASH -D BEARSSL_SSL_BASIC
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-D HTTPCLIENT_1_1_COMPATIBLE=0 -D NO_GLOBAL_SERIAL=0
-DNDEBUG -DFP_IN_IROM -frandom-seed=b61f78373
build_flags_esp32 =
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-DVTABLES_IN_FLASH -DBEARSSL_SSL_BASIC
build_flags_esp32_release = ${common.build_flags_esp32} -DNDEBUG
build_flags_esp32_debug = ${common.build_flags_esp32} -g -Og -fno-inline -DUSING_JTAG_DEBUGGER_PINS=1 -DDEBUG_ESP_PORT=Serial
board_build.ldscript = eagle.flash.4m3m.ld
board_build.filesystem = spiffs
board_build.f_cpu = 160000000L
; Always depend on specific library versions (wherever possible and only for external libraries)
; Keep Library names in the order of their dependencies (leaves at the top)
; ESP8266WiFi in both cases is necessary to solve a case sensitivity issue with WiFiUdp.h
; Use library ID numbers instead of names for libraries whose names are not unique
; (like OneWire, LiquidCrystal_I2C and TinyGPSPlus)
lib_deps_external =
paulstoffregen/[email protected]
marcoschwartz/[email protected]
adafruit/Adafruit BMP085 [email protected]
adafruit/Adafruit HTU21DF [email protected]
https://github.com/adafruit/Adafruit_SHT31.git#1.2.0
milesburton/[email protected]
sparkfun/SparkFun SCD30 Arduino Library @ ^1.0.13
bblanchon/[email protected]
ThingPulse/ESP8266 and ESP32 OLED driver for SSD1306 displays @ ^4.2.1
mikalhart/[email protected]
climateguard/ClimateGuard RadSens@^1.1.1
sparkfun/SparkFun CCS811 Arduino Library@^2.0.3
arduino-libraries/ArduinoHttpClient@^0.6.0
; system libraries from platform -> no version number
lib_deps_esp8266_platform =
Hash
Wire
ESP8266WiFi
DNSServer
ESP8266HTTPClient
ESP8266WebServer
ESP8266mDNS
EspSoftwareSerial
; system libraries from platform -> no version number
lib_deps_esp32_platform =
Wire
WiFi
DNSServer
WiFiClientSecure
HTTPClient
FS
SPIFFS
WebServer
Update
ESPmDNS
lib_deps_esp8266 = ${common.lib_deps_esp8266_platform} ${common.lib_deps_external}
lib_deps_esp32 = ${common.lib_deps_esp32_platform} ${common.lib_deps_external}
extra_scripts = platformio_script.py
# This release is reflecting the Arduino Core 2.7.4 release
# When the requirement for Arduino Core is raised, this
# needs to be adjusted to the matching version from
# https://github.com/platformio/platform-espressif8266/releases
platform_version = [email protected]
platform_version_esp32 = [email protected] ; using Arduino core 1.0.4
; [DISABLEDenv:lolin_d32_pro_debug]
; lang = DE
; platform = ${common.platform_version_esp32}
; framework = arduino
; board = lolin_d32_pro
; build_flags = ${common.build_flags_esp32_debug} '-DINTL_DE' '-DFLIP_I2C_PMSERIAL'
; lib_deps = ${common.lib_deps_esp32}
; extra_scripts = ${common.extra_scripts}
; debug_tool = custom
; targets = debug
; [env:heltec_wifi_lora_32_V2]
; lang = DE
; platform = ${common.platform_version_esp32}
; framework = arduino
; board = heltec_wifi_lora_32_V2
; ; to know if you have a WROVER or WROOM board, look in the file
; ; .platformio/platforms/espressif32/boards/<your_boardname>.json
; ; when you find the following line, you have a WROOM board:
; ; "openocd_board": "esp-wroom-32.cfg"
; build_flags = ${common.build_flags_esp32_release} '-DINTL_DE' '-DESP32_WROOM_MODULE'
; lib_deps = ${common.lib_deps_esp32}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2]
; lang = de
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; check_tool = clangtidy
; check_flags =
; clangtidy: --checks=-*,cert-*,bugprone-*,clang-analyzer-*,hicpp-*,modernize-*,performance-*,portability-*,-readability-*
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_DE
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
[env:nodemcuv2_ru]
lang = ru
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.ldscript = ${common.board_build.ldscript}
board_build.filesystem = ${common.board_build.filesystem}
build_flags = ${common.build_flags} -DINTL_RU
lib_deps = ${common.lib_deps_esp8266}
extra_scripts = ${common.extra_scripts}
[env:nodemcuv2_en]
lang = en
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.ldscript = ${common.board_build.ldscript}
board_build.filesystem = ${common.board_build.filesystem}
build_flags = ${common.build_flags} -DINTL_EN
lib_deps = ${common.lib_deps_esp8266}
extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_bg]
; lang = bg
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_BG
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_cz]
; lang = cz
; framework = arduino
; platform = ${common.platform_version}
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_CZ
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_dk]
; lang = dk
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_DK
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_es]
; lang = es
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_ES
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_fr]
; lang = fr
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_FR
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_hu]
; lang = hu
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_HU
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_it]
; lang = it
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_IT
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_lu]
; lang = lu
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_LU
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_nl]
; lang = nl
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_NL
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_pl]
; lang = pl
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_PL
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_pt]
; lang = pt
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_PT
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_rs]
; lang = rs
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_RS
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_se]
; lang = se
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_SE
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_sk]
; lang = sk
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_SK
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_tr]
; lang = tr
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_TR
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}
; [env:nodemcuv2_ua]
; lang = ua
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; board_build.ldscript = ${common.board_build.ldscript}
; board_build.filesystem = ${common.board_build.filesystem}
; build_flags = ${common.build_flags} -DINTL_UA
; lib_deps = ${common.lib_deps_esp8266}
; extra_scripts = ${common.extra_scripts}