-
Notifications
You must be signed in to change notification settings - Fork 4
/
platformio.ini
335 lines (295 loc) · 13.6 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
; 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]
src_dir = .
include_dir = ./src
data_dir = ./data/web
[env]
# Official PlatformIO espressif32 and Arduino 2.x
platform = [email protected]
#
# Official PlatformIO espressif32 and Arduino 3.x
# but only supports ESP32, ESP32-S2, ESP32-C3 and ESP32-S3
#platform = [email protected]
#platform_packages =
# framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.5
# framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-33fbade6.zip
#
# UNOFFICIAL Espressif32 and Arduino 3.x
# should support also latest ESP32 boards (not verified)
#platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
#
build_src_filter = -<*> +<src/*>
build_flags = -D CRON_USE_LOCAL_TIME -D CRON_DISABLE_YEARS -Os -D BUILD_ENV_NAME=\"$PIOENV\"
build_unflags = -fno-exceptions
framework = arduino
board = esp32dev
board_build.filesystem = littlefs
board_build.flash_size = 4MB
board_build.partitions = ./src/partitions.csv
monitor_filters = send_on_enter
monitor_eol = LF
monitor_echo = true
lib_deps =
thijse/[email protected]
hideakitai/[email protected]
adafruit/[email protected]
lovyan03/[email protected]
dvarrel/[email protected]
jpb10/[email protected]
lib_deps_8266 =
vshymanskyy/[email protected]
[env:default]
build_flags = ${env.build_flags}
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","io-typ01":"Switch","io-pin01":"5","io-typ02":"Switch","io-pin02":"13","io-typ03":"Dimmer","io-pin03":"14","io-typ04":"Dimmer","io-pin04":"15"}'
[env:default-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","io-typ01":"Switch","io-pin01":"7","io-typ02":"Switch","io-pin02":"8","io-typ03":"Dimmer","io-pin03":"9","io-typ04":"Dimmer","io-pin04":"10"}'
[env:default-s2-mini]
board = lolin_s2_mini
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S2 -D BOARD_HAS_PSRAM
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"15","io-typ01":"Switch","io-pin01":"7","io-typ02":"Switch","io-pin02":"8","io-typ03":"Dimmer","io-pin03":"9","io-typ04":"Dimmer","io-pin04":"10"}'
lib_ignore =
ESP32_BleSerial
[env:default-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -D DISABLE_UI -D DISABLE_AUTOMATION
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"16","io-typ01":"Switch","io-pin01":"14","io-typ02":"Switch","io-pin02":"27","io-typ03":"Switch","io-pin03":"27","io-typ04":"Switch","io-pin04":"27"}'
lib_deps = ${env.lib_deps_8266}
${env.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:sonoff-dualr3]
build_flags = ${env.build_flags} -D DISABLE_UI -D CONFIG_AUTOMATION_SPAWN_FREERTOS_TASK
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"13","io-typ01":"Switch","io-pin01":"14","io-typ02":"Switch","io-pin02":"27","io-typ03":"Switch","io-pin03":"27","io-typ04":"Switch","io-pin04":"27"}'
#------------------[ Examples ]------------------
[env:smart-sensor]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","io-typ01":"Dimmer","io-pin01":"15","io-typ02":"Dimmer","io-pin02":"17","sdht-typ":"22","sdht-pin":"21","motn-typ":"switch","motn-pin":"16"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor>
lib_deps = ${env.lib_deps}
adafruit/Adafruit TCS34725@^1.4.4
RobTillaart/[email protected]
PaulStoffregen/[email protected]
# https://github.com/PaulStoffregen/OneWire.git
https://github.com/adafruit/Adafruit_NeoPixel#1.12.0
lib_ignore =
LovyanGFX
[env:smart-sensor-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
-D DEFAULT_CONFIG='{"sys-rb-n":"9","sys-sl-n":"-1","stld-typ":"82","stld-spd":"0","stld-pin":"10","io-typ01":"Dimmer","io-pin01":"4","io-typ02":"Dimmer","io-pin02":"5","sdht-typ":"22","sdht-pin":"7","motn-typ":"switch","motn-pin":"8"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor>
lib_deps = ${env:smart-sensor.lib_deps}
lib_ignore =
LovyanGFX
[env:smart-sensor-s3]
board = esp32-s3-fh4r2
#board = esp32-s3-devkitc-1
#board = esp32-s3-devkitm-1
#board = lolin_s3_mini
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S3 -D DISABLE_UI
-D BOARD_HAS_PSRAM -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","stld-typ":"82","stld-spd":"0","stld-pin":"21","io-typ01":"Dimmer","io-pin01":"5","io-typ02":"Dimmer","io-pin02":"6","sdht-typ":"22","sdht-pin":"8","motn-typ":"switch","motn-pin":"9"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor>
lib_deps = ${env:smart-sensor.lib_deps}
lib_ignore =
LovyanGFX
[env:smart-sensor-s2-mini]
board = lolin_s2_mini
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S2 -D DISABLE_UI
-D BOARD_HAS_PSRAM
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"15","io-typ01":"Dimmer","io-pin01":"4","io-typ02":"Dimmer","io-pin02":"5","sdht-typ":"22","sdht-pin":"7","motn-typ":"switch","motn-pin":"8"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor>
lib_deps = ${env:smart-sensor.lib_deps}
lib_ignore =
ESP32_BleSerial
LovyanGFX
[env:smart-sensor-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI -D DISABLE_AUTOMATION
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"16","sys_bt_pin":"2","sys_sl_pin":"16","soth-typ":"ds18b20","soth-pin":"0","ligh-typ":"ldr","ligh-pin":"17"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor>
lib_deps = ${env.lib_deps_8266}
${env:smart-sensor.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:smart-sensor-display]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_AUTOMATION
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","io-typ01":"Dimmer","io-pin01":"15","io-typ02":"Dimmer","io-pin02":"17","sdht-typ":"22","sdht-pin":"21","motn-typ":"switch","motn-pin":"16"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor> -<examples/smart-sensor/smart-sensor.cpp> +<examples/smart-sensor-display>
board_build.partitions = ./src/partitions.csv
lib_deps = ${env:smart-sensor.lib_deps}
[env:smart-sensor-display-s3]
board = esp32-s3-devkitc-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S3 -D CONFIG_AUTOMATION_SPAWN_FREERTOS_TASK
-D ESP32S3_DEV -D BOARD_HAS_PSRAM
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","io-typ01":"Dimmer","io-pin01":"15","io-typ02":"Dimmer","io-pin02":"17","sdht-typ":"22","sdht-pin":"21","motn-typ":"switch","motn-pin":"16"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/smart-sensor> -<examples/smart-sensor/smart-sensor.cpp> +<examples/smart-sensor-display>
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
board_build.arduino.memory_type = qio_qspi
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = default_16MB.csv
board_upload.flash_size = 16MB
lib_deps = ${env:smart-sensor.lib_deps}
[env:x10-transceiver]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/x10-transceiver>
[env:x10-transceiver-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI
-D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
build_src_filter = +<src> -<src/main.cpp> +<examples/x10-transceiver>
lib_ignore =
LovyanGFX
[env:x10-transceiver-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/x10-transceiver>
lib_deps = ${env.lib_deps_8266}
${env.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:rf-transceiver]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/rf-transceiver>
lib_deps = ${env.lib_deps}
[env:rf-transceiver-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/rf-transceiver>
lib_deps = ${env.lib_deps_8266}
${env:rf-transceiver.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:rf-transceiver-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI
-D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
build_src_filter = +<src> -<src/main.cpp> +<examples/rf-transceiver>
lib_deps = ${env:rf-transceiver.lib_deps}
lib_ignore =
LovyanGFX
[env:ir-transceiver]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/ir-transceiver>
lib_deps = ${env.lib_deps}
crankyoldgit/[email protected]
lib_ignore =
LovyanGFX
[env:ir-transceiver-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/ir-transceiver>
lib_deps = ${env.lib_deps_8266}
${env:ir-transceiver.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:ir-transceiver-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI
-D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
build_src_filter = +<src> -<src/main.cpp> +<examples/ir-transceiver>
lib_deps = ${env:ir-transceiver.lib_deps}
https://github.com/adafruit/Adafruit_NeoPixel#1.12.0
lib_ignore =
LovyanGFX
[env:color-light]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/color-light>
lib_deps = ${env.lib_deps}
https://github.com/adafruit/Adafruit_NeoPixel#1.12.0
[env:color-light-d1-mini]
platform = [email protected]
board = d1_mini
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI -D DISABLE_AUTOMATION
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"16","leds-typ":"6","leds-cnt":"64","leds-spd":"0","leds-pin":"8"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/color-light>
lib_deps = ${env.lib_deps_8266}
${env:color-light.lib_deps}
lib_ignore =
ESP32Time
ESP32_BleSerial
LovyanGFX
[env:color-light-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI
-D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
-D DEFAULT_CONFIG='{"sys-rb-n":"9","sys-sl-n":"-1","stld-typ":"82","stld-spd":"0","stld-pin":"10","leds-typ":"82","leds-spd":"0","leds-pin":"5","leds-cnt":"1"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/color-light>
lib_deps = ${env:color-light.lib_deps}
[env:color-light-s3]
board = esp32-s3-fh4r2
#board = esp32-s3-devkitc-1
#board = esp32-s3-devkitm-1
#board = lolin_s3_mini
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S3 -D DISABLE_UI
-D BOARD_HAS_PSRAM -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"-1","stld-typ":"82","stld-spd":"0","stld-pin":"21","leds-typ":"82","leds-spd":"0","leds-pin":"6","leds-cnt":"1"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/color-light>
lib_deps = ${env:color-light.lib_deps}
[env:color-light-s2-mini]
board = lolin_s2_mini
build_flags = ${env.build_flags} -I examples -I src -D ESP32_S2
-D BOARD_HAS_PSRAM
-D DEFAULT_CONFIG='{"sys-rb-n":"0","sys-sl-n":"15","leds-typ":"82","leds-spd":"0","leds-pin":"8","leds-cnt":"0"}'
build_src_filter = +<src> -<src/main.cpp> +<examples/color-light>
lib_deps = ${env:color-light.lib_deps}
lib_ignore =
ESP32_BleSerial
[env:shutter]
build_flags = ${env.build_flags} -I examples -I src -D DISABLE_UI
build_src_filter = +<src> -<src/main.cpp> +<examples/shutter>
lib_deps = ${env.lib_deps}
arduino-libraries/Stepper@^1.1.3
madhephaestus/ESP32Servo@^1.1.1
[env:shutter-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D DISABLE_UI -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
build_src_filter = +<src> -<src/main.cpp> +<examples/shutter>
lib_deps = ${env:shutter.lib_deps}
https://github.com/adafruit/Adafruit_NeoPixel#1.12.0
[env:playground]
build_flags = ${env.build_flags} -I examples -I src
build_src_filter = +<src> -<src/main.cpp> +<examples/playground>
[env:playground-c3]
board = esp32-c3-devkitc-02
#board = esp32-c3-devkitm-1
build_flags = ${env.build_flags} -I examples -I src -D ESP32_C3 -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=1
build_src_filter = +<src> -<src/main.cpp> +<examples/playground>