forked from forkineye/ESPixelStick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
425 lines (388 loc) · 12.4 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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
; PlatformIO Project Configuration File for ESPixelStick
; https://docs.platformio.org/page/projectconf.html
;
; Local configuration should be done in platformio_user.ini
[platformio]
default_envs = espsv3, d1_mini, d1_mini_pro, d32_pro, d32_pro_eth, esp32_cam, esp32_ttgo_t8, d1_mini32, d1_mini32_eth, esp32_wt32eth01, esp32_quinled_quad, esp32_quinled_quad_ae_plus, esp32_quinled_quad_ae_plus_8, esp32_quinled_quad_eth, esp32_quinled_uno, esp32_quinled_uno_ae_plus, esp32_quinled_uno_eth, esp32_quinled_dig_octa, esp01s, d1_mini_mhetesp32minikit, olimex_esp32_gw, d1_mini_twilightlord, d1_mini_twilightlord_eth, esp32_devkitc, esp32_quinled_uno_eth_espsv3, esp32_quinled_uno_espsv3, m5stack_atom, esp3deuxquatro_dmx
src_dir = ./ESPixelStick
data_dir = ./ESPixelStick/data
build_cache_dir = ./.pio/.buildcache
packages_dir = ./.pio/packages
cache_dir = ./.pio/cache
extra_configs = platformio_user.ini
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; Baseline build environment ;
; https://docs.platformio.org/en/latest/projectconf/section_env.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[env]
framework = arduino
monitor_speed = 115200
upload_speed = 921600
lib_compat_mode = strict
lib_deps =
adafruit/Adafruit PWM Servo Driver Library @ 2.4.0
bblanchon/ArduinoJson @ 6.18.5
bblanchon/StreamUtils @ 1.6.2
djgrrr/Int64String @ 1.1.1
https://github.com/esphome/ESPAsyncWebServer#4fd0a1fdf421664214a27373c0eb0247f94b7a79
forkineye/ESPAsyncE131 @ 1.0.4
ottowinter/AsyncMqttClient-esphome @ 0.8.6
https://github.com/natcl/Artnet ; pull latest
https://github.com/MartinMueller2003/Espalexa ; pull latest
extra_scripts =
pre:.scripts/pio-version.py
.scripts/download_fs.py
post:.scripts/CopyTargets.py
; build_type = debug
; upload_port = com6
lib_ignore =
ESP Async WebServer ; force the use of the esphome version
AsyncTCP ; force the use of the esphome version
LittleFS_esp32 ; force the use of the ESP32 built into the core version
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP8266 defaults for 4MB flash ;
; https://docs.platformio.org/en/latest/platforms/espressif8266.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp8266]
platform = espressif8266 @ 4.0.1 ; Arduino Core v3.0.2
board_build.f_cpu = 160000000L
board_build.filesystem = littlefs
board_build.ldscript = eagle.flash.4m2m.ld
monitor_filters = esp8266_exception_decoder
build_flags =
${env.build_flags}
; -D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190313
; -D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
-D NDEBUG ; https://github.com/esp8266/Arduino/issues/3978
-D FP_IN_IROM ; https://github.com/esp8266/Arduino/pull/7180
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
; -D VTABLES_IN_IRAM
-D VTABLES_IN_FLASH
-Wl,-Map=firmware.map
-Wl,--cref
; -DDEBUG_ESP_PORT=Serial
; -DDEBUG_ESP_OOM
lib_ignore =
Ethernet ; Remove once Art-Net is fixed / replaced to not depend on Ethernet in lib config
lib_deps =
${env.lib_deps}
me-no-dev/ESPAsyncUDP @ 0.0.0-alpha+sha.697c75a025
ottowinter/ESPAsyncTCP-esphome @ 1.2.3
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 defaults for 4MB flash ;
; https://docs.platformio.org/en/latest/platforms/espressif32.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp32]
board_build.filesystem = littlefs
board_build.partitions = ESP32_partitions.csv
monitor_filters = esp32_exception_decoder
; monitor_filters = esp32_exception_decoder, time
build_flags =
${env.build_flags}
-Wl,-Map=firmware.map
-Wl,--cref
lib_deps =
${env.lib_deps}
esphome/AsyncTCP-esphome @ 1.2.2
extra_scripts = ${env.extra_scripts}
.scripts/replace_fs.py
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 pulling from upstream core ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp32git]
extends = esp32
build_flags = ${esp32.build_flags} -mtext-section-literals
platform = https://github.com/platformio/platform-espressif32.git#48c4226e5240c873dae6b28adbb93ad8ca582b5d
; platform = https://github.com/platformio/platform-espressif32.git
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.9 ;
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.3 ;
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.2 ; runs real slow
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1 ; Has general issues
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.0 ; SD card not stable on cam card
board_build.arduino.upstream_packages = no
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; Build targets (environments) ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESPixelStick V3
[env:espsv3]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
-D BOARD_NAME='"espsv3"'
-D BOARD_ESPS_V3
; Generic Wemos D1 R2 Mini
[env:d1_mini]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
-D BOARD_NAME='"d1_mini"'
[env:d1_mini_pro]
extends = esp8266
board = d1_mini_pro
build_flags =
${esp8266.build_flags}
-D BOARD_NAME='"d1_mini_pro"'
; Generic Wemos D1 R2 Mini
[env:esp01s]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
-D BOARD_NAME='"esp01s"'
-D BOARD_ESP01S
; Lolin D32 Pro
[env:d32_pro]
extends = esp32git
board = lolin_d32_pro
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d32_pro"'
-D BOARD_ESP32_LOLIN_D32_PRO
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; -D CONFIG_ESP_SYSTEM_PANIC_GDBSTUB -O0 -ggdb3 -g3
; debug_tool = esp-prog
; upload_protocol = esp-prog
; debug_init_break = tbreak setup
; Lolin D32 Pro with Ethernet
[env:d32_pro_eth]
extends = esp32git
board = lolin_d32_pro
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d32_pro_eth"'
-D BOARD_ESP32_LOLIN_D32_PRO_ETH
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; ESP32 CAM
[env:esp32_cam]
extends = esp32git
board = esp32cam
monitor_rts = 0
monitor_dtr = 0
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_cam"'
-D BOARD_ESP32_CAM
-fexceptions
build_unflags =
-fno-exceptions
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; ESP32 TTGO-T8 V1.x
[env:esp32_ttgo_t8]
extends = esp32git
board = ttgo-t7-v14-mini32 ; use until platformio adds TTGO-T8
monitor_rts = 0
monitor_dtr = 0
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_ttgo_t8"'
-D BOARD_ESP32_TTGO_T8
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; Generic Wemos D1 Mini 32
[env:d1_mini32]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d1_mini32"'
-D BOARD_ESP32_D1_MINI
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; Generic Wemos D1 Mini 32
[env:d1_mini32_eth]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d1_mini32_eth"'
-D BOARD_ESP32_D1_MINI_ETH
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
; WT 32 ETH 01
[env:esp32_wt32eth01]
extends = esp32git
board = esp32dev
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_wt32eth01"'
-D BOARD_ESP32_WT32ETH01
-I ./.pio/packages/framework-arduinoespressif32/libraries/Ethernet/src
; -D BOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
; -mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_dig_octa]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_dig_octa"'
-D BOARD_ESP32_QUINLED_DIG_OCTA
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_quad]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_quad"'
-D BOARD_ESP32_QUINLED_QUAD
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_quad_ae_plus]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_quad_ae_plus"'
-D BOARD_ESP32_QUINLED_QUAD_AE_PLUS
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_quad_ae_plus_8]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_quad_ae_plus_8"'
-D BOARD_ESP32_QUINLED_QUAD_AE_PLUS_8
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_quad_eth]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_quad_eth"'
-D BOARD_ESP32_QUINLED_QUAD_ETH
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_uno]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_uno"'
-D BOARD_ESP32_QUINLED_UNO
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_uno_ae_plus]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_uno_ae_plus"'
-D BOARD_ESP32_QUINLED_UNO_AE_PLUS
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_uno_eth]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_uno_eth"'
-D BOARD_ESP32_QUINLED_UNO_ETH
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_uno_eth_espsv3]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_uno_eth_espsv3"'
-D BOARD_ESP32_QUINLED_UNO_ETH_ESPSV3
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:esp32_quinled_uno_espsv3]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_quinled_uno_espsv3"'
-D BOARD_ESP32_QUINLED_UNO_ESPSV3
build_unflags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:d1_mini_mhetesp32minikit]
extends = esp32git
board = mhetesp32minikit
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d1_mini_mhetesp32minikit"'
-D BOARD_ESP32_QUINLED_UNO_ETH
; Olimex ESP32 Gateway
[env:olimex_esp32_gw]
extends = esp32git
board = esp32-gateway
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"olimex_esp32_gw"'
-D BOARD_ESP32_OLIMEX_GATEWAY
[env:d1_mini_twilightlord]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d1_mini_twilightlord"'
-D BOARD_ESP32_TWILIGHTLORD
[env:d1_mini_twilightlord_eth]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"d1_mini_twilightlord_eth"'
-D BOARD_ESP32_TWILIGHTLORD_ETH
[env:esp32_devkitc]
extends = esp32git
board = esp32dev
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp32_devkitc"'
-D BOARD_ESP32_DEVKITC
;M5Stack Atom Lite/Matrix
[env:m5stack_atom]
extends = esp32git
board = m5stack-atom
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"m5stack_atom"'
-D BOARD_ESP32_M5STACK_ATOM
;Quatro from CanadaPixelsCoro.ca
[env:esp3deuxquatro_dmx]
extends = esp32git
board = wemos_d1_mini32
build_flags =
${esp32git.build_flags}
-D BOARD_NAME='"esp3deuxquatro_dmx"'
-D BOARD_ESPS_ESP3DEUXQUATRO_DMX