forked from forkineye/ESPixelStick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
173 lines (156 loc) · 4.99 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
; 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, d32_pro, d32_pro_eth, esp32_cam, esp32_ttgo_t8, d1_mini32, d1_mini32_eth, d1_mini_mhetesp32minikit
src_dir = ./ESPixelStick
data_dir = ./ESPixelStick/data
build_cache_dir = ~/.buildcache
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.4
bblanchon/StreamUtils @ 1.6.1
djgrrr/Int64String @ 1.1.1
https://github.com/forkineye/ESPAsyncWebServer.git#v2.0.0
forkineye/ESPAsyncE131 @ 1.0.4
ottowinter/AsyncMqttClient-esphome @ 0.8.5
https://github.com/natcl/Artnet ; pull latest
https://github.com/MartinMueller2003/Espalexa ; pull latest
lib_ignore =
Ethernet ; Remove once Art-Net is fixed / replaced to not depend on Ethernet in lib config
extra_scripts =
pre:.scripts/pio-version.py
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP8266 defaults for 4MB flash ;
; https://docs.platformio.org/en/latest/platforms/espressif8266.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp8266]
platform = espressif8266 @ 3.2.0 ; Arduino Core 3.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}
; -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190313
; -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
-DNDEBUG ; https://github.com/esp8266/Arduino/issues/3978
-DFP_IN_IROM ; https://github.com/esp8266/Arduino/pull/7180
; -DPIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
; -DVTABLES_IN_IRAM
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]
platform = espressif32
board_build.filesystem = littlefs
board_build.partitions = ESP32_partitions.csv
monitor_filters = esp32_exception_decoder
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
esphome/AsyncTCP-esphome @ 1.2.2
extra_scripts = .scripts/replace_fs.py
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 pulling from upstream core ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp32git]
extends = esp32
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.2
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; Build targets (environments) ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESPixelStick V3
[env:espsv3]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
-DBOARD_ESPS_V3
; Generic Wemos D1 R2 Mini
[env:d1_mini]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
; Generic Wemos D1 R2 Mini
[env:esp01s]
extends = esp8266
board = d1_mini
build_flags =
${esp8266.build_flags}
-DBOARD_ESP01S
; Lolin D32 Pro
[env:d32_pro]
extends = esp32git
board = lolin_d32_pro
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
-DBOARD_ESP32_LOLIN_D32_PRO
; Lolin D32 Pro with Ethernet
[env:d32_pro_eth]
extends = esp32git
board = lolin_d32_pro
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
-DBOARD_ESP32_LOLIN_D32_PRO_ETH
; ESP32 CAM
[env:esp32_cam]
extends = esp32git
board = esp32cam
monitor_rts = 0
monitor_dtr = 0
build_flags =
-DBOARD_ESP32_CAM
; ESP32 TTGO-T8 V1.x
[env:esp32_ttgo_t8]
extends = esp32git
board = wemos_d1_mini32 ; use until platformio adds TTGO-T8
monitor_rts = 0
monitor_dtr = 0
build_flags =
-DBOARD_ESP32_TTGO_T8
; Generic Wemos D1 Mini 32
[env:d1_mini32]
extends = esp32git
board = wemos_d1_mini32
build_flags =
-DBOARD_ESP32_D1_MINI
; Generic Wemos D1 Mini 32
[env:d1_mini32_eth]
extends = esp32git
board = wemos_d1_mini32
build_flags =
-DBOARD_ESP32_D1_MINI_ETH
; MH ET LIVE MiniKit
[env:d1_mini_mhetesp32minikit]
extends = esp32git
board = mhetesp32minikit
build_flags =
-DBOARD_ESP32_MH_ET_LIVE_MiniKit