forked from PlummersSoftwareLLC/NightDriverStrip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
340 lines (299 loc) · 10.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
336
337
338
339
340
; 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]
data_dir = ./data
default_envs = ledstrip
; Link libs
[common]
lib_deps = crankyoldgit/IRremoteESP8266 @ ^2.7.20
fastled/FastLED @ ^3.4.0
adafruit/Adafruit BusIO @ ^1.9.1
adafruit/Adafruit GFX Library @ ^1.10.12
adafruit/Adafruit ILI9341 @ ^1.5.10
bblanchon/ArduinoJson @ ^6.8.14
olikraus/U8g2 @ ^2.28.8
kosme/arduinoFFT @ ^1.5.6
me-no-dev/AsyncTCP @ ^1.1.1
thomasfredericks/Bounce2 @ ^2.7.0
https://github.com/PlummersSoftwareLLC/ESPAsyncWebServer.git
joaolopesf/RemoteDebug @ ^3.0.5
; Libs needed to link with an M5StickC
[m5stick-c]
lib_deps = ${common.lib_deps}
m5stack/M5StickC @ ^0.2.3
; Libs needed to link with an M5StickC Plus version
[m5stick-c-plus]
lib_deps = ${common.lib_deps}
m5stack/M5StickCPlus @ ^0.0.2
; Libs needed to link with a TTGO Module
[ttgo]
lib_deps = ${common.lib_deps}
https://github.com/Xinyuan-LilyGO/TTGO-T-Display
; All lib deps combined
[all]
lib_deps = ${common.lib_deps}
${m5stick-c.lib_deps}
${m5stick-c-plus.lib_deps}
[env]
platform = [email protected]
framework = arduino
build_type = release
build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps}
lib_extra_dirs = ${PROJECT_DIR}/lib
; This partition table attempts to fit everything in 4M of flash.
board_build.partitions = partitions_custom.csv
monitor_filters = esp32_exception_decoder
[env:all-deps]
lib_deps = ${all.lib_deps}
[env:demo]
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
upload_port = COM10 ; This will vary by machine and may not be needed if you have a single ESP attached
build_flags = -DDEMO=1
-std=gnu++17
-Ofast
[env:wrover-demo]
board = esp-wrover-kit
monitor_speed = 115200
upload_speed = 1500000
build_flags = -DWROVERKIT=1
-DDEBUG=1
-DUSE_SCREEN=1
-DUSE_PSRAM=0
-DBOARD_HAS_PSRAM=0
-std=gnu++17
-Ofast
-mfix-esp32-psram-cache-issue
build_type = debug
upload_port = COM10
debug_tool = ftdi
upload_protocol = ftdi
debug_init_break =
;upload_protocol = ftdi
[env:ledstrip]
board = heltec_wifi_kit_32
monitor_speed = 115200
upload_speed = 921600
upload_port = COM10
monitor_port = COM10
build_type = release
build_flags = -DLEDSTRIP=1
-DUSE_SCREEN=1
-DUNITY_INCLUDE_DOUBLE
-DUNITY_DOUBLE_PRECISION=1e-12 ; Make doubles real 8 byte doubles
-std=gnu++17
-Dregister= ; Sinister: redefined 'register' so FastLED can use that keyword under C++17
-O3
[env:generic]
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
upload_port = /dev/cu.usbserial-01B5715B
build_flags = -DLEDSTRIP=1
-std=gnu++17
-Ofast
; This is the basic DEMO project, but expanded to work on the M5, which means it can draw to
; the built in LCD. It's made so that you can connect to the small 4-pin connector on the M5,
; so it sends power and ground as well as data on PIN 32.D
[env:m5demo]
board = m5stick-c ; Requires the M5 Stick C Plus (note the Plus)
upload_speed = 1500000
monitor_speed = 115200
upload_port = 3 ; This will vary by machine
build_flags = -DDEMO=1
-DM5STICKC=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c.lib_deps}
; This is largely the same as the m5demo above except it links to the PLUS version of the lib
; and defines M5STICKCPLUS=1
[env:m5plusdemo]
board = m5stick-c ; Requires the M5 Stick C Plus (note the Plus)
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM4 ; This will vary by machine
build_flags = -DDEMO=1
-DM5STICKCPLUS=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
; For low-density setups like a strand of Christmas lights
[env:strand]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM4 ; This will vary by machine
build_flags = -DSTRAND=1
-DM5STICKCPLUS=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
[env:heltecdemo]
board = heltec_wifi_kit_32
monitor_speed = 115200
upload_speed = 921600
upload_port = /dev/cu.usbserial-01DB4593
monitor_port = /dev/cu.usbserial-01DB4593
build_flags = -DDEMO=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
[env:heltecv2demo] ; V2 board has 8M flash
board = heltec_wifi_kit_32_v2
monitor_speed = 115200
upload_speed = 921600
upload_port = COM7
monitor_port = COM7
build_flags = -DDEMO=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
[env:spectrum]
board = m5stick-c ; Requires the M5 Stick C Plus (note the Plus)
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM4
build_flags = -DM5STICKCPLUS=1
-DUSE_SCREEN=1
-DSPECTRUM=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
[env:spectrumlite] ; Sane as SPECTRUM but required a non-Plus M5 Stick
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM15
build_flags = -DM5STICKC=1
-DUSE_SCREEN=1
-DSPECTRUM=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c.lib_deps}
[env:ttgo]
board = esp32dev
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM14
build_flags = -DTTGO=1
-DUSE_SCREEN=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-std=gnu++17
-Ofast
lib_deps = ${ttgo.lib_deps}
[env:xmastrees]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM11
build_flags = -DM5STICKCPLUS=1
-DUSE_SCREEN=1
-DXMASTREES=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
[env:treeset]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM11
build_flags = -DM5STICKCPLUS=1
-DUSE_SCREEN=1
-DTREESET=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
[env:insulators]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM3
build_flags = -DM5STICKCPLUS=1
-DUSE_SCREEN=1
-DINSULATORS=1
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disa
-std=gnu++17
-Ofast
-Wno-register
lib_deps = ${m5stick-c-plus.lib_deps}
[env:magicmirror]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM21
build_flags = -DM5STICKC=1
-DUSE_SCREEN=1
-DMAGICMIRROR=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c.lib_deps}
[env:atomlight]
board = heltec_wifi_kit_32
monitor_speed = 115200
upload_speed = 921600
upload_port = COM10
build_flags = -DATOMLIGHT=1
-std=gnu++17
-Ofast
[env:brooklynroom]
board = heltec_wifi_kit_32
monitor_speed = 115200
upload_speed = 921600
upload_port = COM10
build_flags = -DBROOKLYNROOM=1
-std=gnu++17
-Ofast
[env:fanset]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM3
build_flags = -DM5STICKC=1
-DUSE_SCREEN=1
-DFANSET=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c.lib_deps}
[env:atomi]
board = heltec_wifi_kit_32
upload_port = /dev/cu.SLAB_USBtoUART
upload_speed = 921600
build_flags = -DATOMISTRING=1
-DHELTEC=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
[env:cube]
board = m5stick-c
upload_speed = 1500000
monitor_speed = 115200
upload_port = COM6
build_flags = -DM5STICKC
-DM5STICKCPLUS=1=1
-DUSE_OLED=1
-DCUBE=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}