-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
324 lines (311 loc) · 8.06 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
; 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 = HOMIE_FIRMWARE_UPLOAD_1MB
;default_envs = HOMIE_FIRMWARE_UPLOAD_4MB
;default_envs = HOMIE_FIRMWARE_PLANT_CONTROL
;default_envs = HOMIE_FIRMWARE_BME680
;default_envs = HOMIE_FIRMWARE_HLW8012
;Light controlls and dimmers
;default_envs = HOMIE_FIRMWARE_H801_1
;default_envs = HOMIE_FIRMWARE_H801_2
;default_envs = HOMIE_FIRMWARE_H801_3
default_envs = HOMIE_FIRMWARE_GREENHOUSE
;default_envs = HOMIE_FIRMWARE_LED_6ch10W
;default_envs = HOMIE_FIRMWARE_LED_1ch10W
[env:HOMIE_FIRMWARE_UPLOAD_1MB]
platform = espressif8266
board = sonoff_s20
framework = arduino
build_flags =
-D $PIOENV
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D INITIAL_UPLOAD
-D HOMIE_MDNS=0
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config
upload_port = COM4
monitor_speed = 115200
lib_extra_dirs =
lib_deps =
https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip ;f13685e @ Oct 17,2019 - PIO ESP Async WebServer_ID306 version is 100K bigger, use this github version
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
[env:HOMIE_FIRMWARE_UPLOAD_4MB]
platform = espressif8266
board = esp01_1m
framework = arduino
build_flags =
-D $PIOENV
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D INITIAL_UPLOAD
upload_port = COM4
monitor_speed = 115200
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
[env:HOMIE_FIRMWARE_PLANT_CONTROL]
platform = espressif8266
board = d1_mini
framework = arduino
;build_type = debug
build_flags =
-D $PIOENV
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D HOMIE_CONFIG=0 ; as a Wemos D2 is used (USB) no web config needed
-D HOMIE_MDNS=0
-D PLANT_CONTROL
-D USE_I2C
-D A_PWM
-D A_GPIO
-D S_BME280
-D S_ADS1115
-D S_BH1750
-D S_HDC1080
upload_port = COM11
monitor_speed = 115200
monitor_filters = esp8266_exception_decoder, default
;upload_protocol = custom
;extra_scripts = extra_script.py
;upload_flags =
; -l 192.168.2.14
; -t "plants/"
; -i "GREENHOUSE-02"
lib_extra_dirs =
lib_4MB
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
adafruit/Adafruit BME280 Library@^2.1.1
claws/BH1750@^1.1.4
closedcube/ClosedCube HDC1080@^1.3.2
[env:HOMIE_FIRMWARE_GREENHOUSE]
platform = espressif8266
board = d1_mini
framework = arduino
;build_type = debug
build_flags =
-D $PIOENV
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
'-D USER_INCLUDE="device-GREENHOUSE.h"'
-D HOMIE_CONFIG=0 ; as a Wemos D2 is used (USB) no web config needed
-D HOMIE_MDNS=0
; -D GREENHOUSE
-D USE_I2C
-D A_PWM
-D A_GPIO
-D S_BH1750
-D S_HDC1080
upload_port = COM3
monitor_speed = 115200
monitor_filters = esp8266_exception_decoder, default
;upload_protocol = custom
;extra_scripts = extra_script.py
;upload_flags =
; -l 192.168.2.14
; -t "plants/"
; -i "GREENHOUSE-01"
lib_extra_dirs =
lib_4MB
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
claws/BH1750@^1.1.4
closedcube/ClosedCube HDC1080@^1.3.2
[env:HOMIE_FIRMWARE_BME680]
platform = espressif8266
board = d1_mini
framework = arduino
build_flags =
-D $PIOENV
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D SENSOR_BME680
-D USE_I2C
upload_port = COM16
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "BME680-01"
lib_extra_dirs =
lib_4MB
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
boschsensortec/BSEC Software Library@^1.5.1474
adafruit/Adafruit NeoPixel@^1.6.0
[env:HOMIE_FIRMWARE_H801_1]
platform = espressif8266
board = esp01_1m ; ESP8266 with 1MB Flash
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
-D HOMIE_CONFIG=0 ; as this is a 1MB device no web config
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D H801_LED_DIMMER
-D MAX_DATAPOINTS=5
-D A_PWM
-D USE_SERIAL1 ; use Serial1 (TX = GPIO2)!
-D USE_I2C
-D H801_1
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config
upload_port = COM4
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "H801-01"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
[env:HOMIE_FIRMWARE_H801_2]
platform = espressif8266
board = esp01_1m ; ESP8266 with 1MB Flash
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
-D HOMIE_CONFIG=0 ; as this is a 1MB device no web config
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D H801_LED_DIMMER
-D A_PWM
-D USE_SERIAL1 ;use Serial1 (TX = GPIO2)!
-D USE_I2C
-D H801_2 ;activate tunable white code
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config
upload_port = COM4
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "H801-02"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
[env:HOMIE_FIRMWARE_H801_3]
platform = espressif8266
board = esp01_1m ; ESP8266 with 1MB Flash
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
'-D USER_INCLUDE="device-H801-2xWWCW.h"'
-D HOMIE_CONFIG=0 ; as this is a 1MB device no web config
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D A_PWM
-D USE_SERIAL1 ;use Serial1 (TX = GPIO2)!
-D USE_I2C
-D H801_3 ;activate tunable white code
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config
upload_port = COM4
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "H801-03"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
[env:HOMIE_FIRMWARE_HLW8012]
platform = espressif8266
board = esp01_1m ; ESP8266 with 1MB Flash
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
-D HOMIE_CONFIG=0 ; as this is a 1MB device no web config
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D MIFRA_2RELAY_HLW8012
-D A_GPIO
-D I_GPIO
-D A_PWM
-D S_HLW8012
; -D USE_SERIAL1 ;use Serial1 (TX = GPIO2)!
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config
upload_port = COM4
monitor_speed = 115200
;upload_protocol = custom
;extra_scripts = extra_script.py
;upload_flags =
; -l 192.168.2.14
; -t "homie/"
; -i "HLW8012-01"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
xoseperez/HLW8012 @ ^1.1.1
[env:HOMIE_FIRMWARE_LED_6ch10W]
platform = espressif8266
board = d1_mini
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
-D HOMIE_CONFIG=0 ; smaller firmware = faster upload
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D LED_6ch10W
-D A_PWM
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config.json
upload_port = COM3
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "LED-6ch10W-01"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0
xoseperez/HLW8012 @ ^1.1.1
[env:HOMIE_FIRMWARE_LED_1ch10W]
platform = espressif8266
board = d1_mini
framework = arduino
; build_type = debug
build_flags =
-D $PIOENV
'-D USER_INCLUDE="HOMIE_FIRMWARE_LED_1ch10W.h"'
-D HOMIE_CONFIG=0 ; smaller firmware = faster upload
-D HOMIE_MDNS=0
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D A_PWM
board_build.ldscript = eagle.flash.1m64.ld ; override of sonoff_basic.json , not 256kb, just 64kb for FS/config.json
upload_port = COM4
monitor_speed = 115200
upload_protocol = custom
extra_scripts = extra_script.py
upload_flags =
-l 192.168.2.14
-t "plants/"
-i "LED-1ch10W-01"
lib_extra_dirs =
lib_deps =
marvinroger/Homie@^3.0.1
arcao/Syslog@^2.0.0