-
Notifications
You must be signed in to change notification settings - Fork 19
/
platformio.ini
289 lines (259 loc) · 8.9 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
; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[platformio]
;See upload_config.ini.example for ideas how to use. Example is for OTA upload with password. If You
;have non standard setup You can change there upload_port or other params. It will take over params
;configured in platformio.ini
extra_configs =
upload_config.ini
[common]
; build flags used by NAMF:
; -D DBG_NAMF_TIMES - enable to get more information on execution times of new scheduler. Needed only for NAMF developers
; should not be any use from that flag on live sensor.
; -D DBG_NAMF_SDS_NO_DATA - enable to force SDS subsystem report no readings as -1 in data to Influx (not in other APIs)
build_flags =
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D BEARSSL_SSL_BASIC
-D VTABLES_IN_DRAM
-D HTTPCLIENT_1_1_COMPATIBLE=0
-D DEBUG_ESP_OOM
-Wl,-Teagle.flash.4m2m.ld ; not really elegant, should be moved to board_build.ldscript
; -ggdb3
; board_build.ldscript = eagle.flash.4m2m.ld ; but it seams that this doesn't work properly :(
board_build.f_cpu = 160000000L ; required by BEARSSL
board_build.f_flash = 40000000L
; Available flash modes: qio / qout / dio / dout
board_build.flash_mode = dio
lib_deps_external =
https://github.com/nettigo/Adafruit_BME280_Library.git
;Adafruit BME280 [email protected]
adafruit/Adafruit BMP085 Library @ ^1.2.1
adafruit/Adafruit BMP280 Library @ ^2.4.0
;Adafruit HTU21DF [email protected]
Adafruit Unified [email protected]
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays @ 4.2.0
AsyncPing(esp8266)@1.1.0
DNSServer
ESP8266HTTPClient
ESP8266WebServer
ESP8266WiFi
ESP8266httpUpdate
ESP8266mDNS
;EspSoftwareSerial
SPI
https://github.com/mikalhart/TinyGPSPlus.git#v0.95
https://github.com/Sensirion/arduino-sps.git#cf56687f7a861ab1b124d0abc7a641e1b6ef6010
Wire
[email protected] ;LiquidCrystal_I2C
https://github.com/pilotak/ClosedCube_SHT31D_Arduino.git
; robtillaart/PCF8574
extra_scripts =
platformio_script.py
pre:generate_language_files.py
platform_version = [email protected]
[env]
lib_ldf_mode = chain+ ; automatically detect libraries by the used includes
;lib_ldf_mode = off ; all used libs must be explicitly referenced
monitor_speed = 115200
;upload_speed = 460800 ; Failsafe
upload_speed = 1000000 ; Don't waste your life waiting for upload! Just buy a propper cable!
[env:lang_pl]
lang = pl
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.f_flash = ${common.board_build.f_flash}
board_build.flash_mode = ${common.board_build.flash_mode}
;debug - see: https://github.com/esp8266/Arduino/blob/master/boards.txt
build_flags = ${common.build_flags} -DINTL_PL -DNDEBUG
;-DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_PORT=Serial
; !python utils/add_timestamp.py
;-DNDEBUG
;-DDEBUG_ESP_WIFI -DNDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial
lib_deps = ${common.lib_deps_external}
extra_scripts = ${common.extra_scripts}
;[env:pl_d1_mini_pro]
;lang = pl
;platform = ${common.platform_version}
;framework = arduino
;board = d1_mini_pro
;board_build.f_cpu = ${common.board_build.f_cpu}
;board_build.f_flash = ${common.board_build.f_flash}
;board_build.flash_mode = ${common.board_build.flash_mode}
;;debug - see: https://github.com/esp8266/Arduino/blob/master/boards.txt
;build_flags = ${common.build_flags} -DINTL_PL -DNDEBUG
; !python utils/add_timestamp.py
;;-DNDEBUG
;;-DDEBUG_ESP_WIFI -DNDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial
;lib_deps = ${common.lib_deps_external}
;extra_scripts = ${common.extra_scripts}
;Minmal firmware as a step to boot new firmware (new SPIFFS) when migrating from old 1:3m flash
[env:wemos-boot]
lang = boot
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
build_flags = ${common.build_flags} -DINTL_EN -DBOOT_FW -DNDEBUG
lib_deps = ${common.lib_deps_external}
extra_scripts = ${common.extra_scripts}
;[env:langdbg]
;lang = pl
;build_type = debug
;platform = ${common.platform_version}
;framework = arduino
;board = nodemcuv2
;board_build.f_cpu = ${common.board_build.f_cpu}
;build_flags = ${common.build_flags} -DINTL_PL
;lib_deps = ${common.lib_deps_external}
;extra_scripts = ${common.extra_scripts}
[env:lang_en]
lang = en
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
build_flags = ${common.build_flags} -DINTL_EN -DNDEBUG
lib_deps = ${common.lib_deps_external}
extra_scripts = ${common.extra_scripts}
[env:lang_hu]
lang = hu
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
build_flags = ${common.build_flags} -DINTL_HU -DNDEBUG
lib_deps = ${common.lib_deps_external}
extra_scripts = ${common.extra_scripts}
[env:lang_ro]
lang = ro
platform = ${common.platform_version}
framework = arduino
board = nodemcuv2
board_build.f_cpu = ${common.board_build.f_cpu}
build_flags = ${common.build_flags} -DINTL_RO -DNDEBUG
lib_deps = ${common.lib_deps_external}
extra_scripts = ${common.extra_scripts}
; [env:lang_de]
; lang = de
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_DE'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_bg]
; lang = bg
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_BG'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_cz]
; lang = cz
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_CZ'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_dk]
; lang = dk
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_DK'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_es]
; lang = es
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_ES'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_fr]
; lang = fr
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_FR'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_it]
; lang = it
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_IT'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_lu]
; lang = lu
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_LU'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_nl]
; lang = nl
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_NL'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; ;[env:lang_pl]
; ;lang = pl
; ;platform = espressif8266
; ;framework = arduino
; ;board = nodemcuv2
; ;board_build.f_cpu = ${common.board_build.f_cpu}
; ;build_flags = ${common.build_flags} '-DINTL_PL'
; ;lib_deps = ${common.lib_deps_external}
; ;extra_scripts = ${common.extra_scripts}
; [env:lang_pt]
; lang = pt
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_PT'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_ru]
; lang = ru
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_RU'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}
; [env:lang_se]
; lang = se
; platform = ${common.platform_version}
; framework = arduino
; board = nodemcuv2
; board_build.f_cpu = ${common.board_build.f_cpu}
; build_flags = ${common.build_flags} '-DINTL_SE'
; lib_deps = ${common.lib_deps_external}
; extra_scripts = ${common.extra_scripts}