-
Notifications
You must be signed in to change notification settings - Fork 357
/
platformio.ini
259 lines (222 loc) · 7.45 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
; NOTE:
; If "file system upload" command is missing PlatformIO UI in VSCode:
; run `pio run -t uploadfs` in the terminal.
; Typically, this is caused by having an invalid platformio.ini
; (or platform_override.ini), and this will show a more coherent
; error message in the terminal output.
; 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]
extra_configs = platformio_override.ini ; so users can easily override settings
default_envs = fastled_webserver__d1_mini, fib1024__d1_mini, fib512__d1_mini, fib256__d1_mini, fib128__d1_mini, fib64_full__d1_mini, fib64_mini__d1_mini, fib32__d1_mini, esp_thing__d1_mini, kraken64__d1_mini, chamaeleon64__d1_mini, esp_thing__d1_mini, 1628_rings__d1_mini
; default_envs = fastled_webserver
; default_envs = fib1024__d1_mini
; default_envs = fib512__d1_mini
; default_envs = fib256__d1_mini
; default_envs = fib128__d1_mini
; default_envs = fib64_full__d1_mini
; default_envs = fib64_mini__d1_mini
; default_envs = fib64_micro__d1_mini
; default_envs = fib64_nano__d1_mini
; default_envs = fib32__d1_mini
; default_envs = esp_thing__d1_mini
; default_envs = kraken64__d1_mini
; default_envs = chamaeleon64__d1_mini
; default_envs = esp_thing__d1_mini
; default_envs = 1628_rings__d1_mini
src_dir = ./esp8266-fastled-webserver/
data_dir = ./esp8266-fastled-webserver/data
; build_cache_dir = ~/.buildcache
[common]
ldscript_1m128k = eagle.flash.1m128.ld
ldscript_2m512k = eagle.flash.2m512.ld
ldscript_2m1m = eagle.flash.2m1m.ld
ldscript_4m1m = eagle.flash.4m1m.ld
debug_flags =
-D DEBUG=1
-D DEBUG_ESP_PORT=Serial
build_flags =
-Wall
-Wextra
-fno-exceptions
-D SECURE_CLIENT=SECURE_CLIENT_BEARSSL
-D NDEBUG
-D BUILDING_USING_PLATFORMIO
build_flags_esp8266 = ${common.build_flags} ${esp8266.build_flags}
build_flags_esp32 = ${common.build_flags} ${esp32.build_flags}
build_unflags =
; YES, the mismatch in version numbers is confusing.
; This gives the *LATEST* espressif release for a given arduino core version.
arduino_core_2_6_3 = [email protected]
arduino_core_2_7_0 = [email protected]
arduino_core_2_7_1 = [email protected]
arduino_core_2_7_2 = [email protected]
arduino_core_2_7_3 = [email protected]
arduino_core_2_7_4 = [email protected]
; WARNING -- Moving to v3.0.0 or higher risks MAJOR breaking changes.
; See https://github.com/esp8266/Arduino/releases/tag/3.0.0
; In particular, new() no longer will return nullptr ...
; See https://github.com/esp8266/Arduino/pull/7536#issuecomment-683431735
arduino_core_3_0_0 = [email protected]
arduino_core_3_0_1 = [email protected]
arduino_core_3_0_2 = [email protected]
arduino_core_develop = https://github.com/platformio/platform-espressif8266#develop
arduino_core_git = https://github.com/platformio/platform-espressif8266#feature/stage
; Define the version to use based on the Arduino Core version...
platform_default = ${common.arduino_core_2_7_4}
platform_packages = tasmota/framework-arduinoespressif8266 @ 3.20704.7
platformio/toolchain-xtensa @ ~2.40802.200502
platformio/tool-esptool @ ~1.413.0
platformio/tool-esptoolpy @ ~1.30000.0
[scripts_defaults]
extra_scripts =
post:pio-scripts/strip-floats.py
[env]
check_skip_packages = yes # required for cppcheck to not crash as of 2021-12-14
check_tool = cppcheck
# check_tool = cppcheck, clangtidy # eventually want to also run clangtidy (which crashes with error 0xC0000005 (STATUS_ACCESS_VIOLATION))
check_flags =
cppcheck: --enable=all --std=c++11 --inconclusive --addon=cert.py
clangtidy: --checks=*
framework = arduino
board_build.flash_mode = dout
board_build.filesystem = littlefs
monitor_speed = 115200
upload_speed = 921600
extra_scripts = ${scripts_defaults.extra_scripts}
lib_compat_mode = strict
lib_deps =
fastled/FastLED @ 3.4.0
bblanchon/ArduinoJson @ ^6.18.5
lorol/LITTLEFS_esp32 @ ^1.0.6
; https://github.com/arduino-libraries/NTPClient.git @ 3.2.0
NTPClient=https://github.com/arduino-libraries/NTPClient/archive/refs/tags/3.2.0.zip
https://github.com/tzapu/WiFiManager.git @ ^2.0.4-beta
[esp8266]
build_flags =
-D ESP8266
-D FP_IN_IROM
-D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-D VTABLES_IN_FLASH
lib_deps =
${env.lib_deps}
[esp32]
build_flags =
-g
-D ARDUINO_ARCH_ESP32
-D CONFIG_LITTLEFS_FOR_IDF_3_2
lib_deps =
${env.lib_deps}
[common__d1_mini]
platform = ${common.platform_default}
platform_packages = ${common.platform_packages}
lib_deps = ${esp8266.lib_deps}
board = d1_mini
board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
[common__d1_mini32]
platform = [email protected]
platform_packages = ${common.platform_packages}
lib_deps = ${esp32.lib_deps}
board = wemos_d1_mini32
board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
[env:fastled_webserver__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_DEFAULT
[env:fib1024__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI1024
[env:fib512__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI512
[env:fib256__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI256
[env:fib128__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI128
[env:fib64_full__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI64_FULL
[env:fib64_mini__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI64_MINI
; NOT YET SUPPORTED.
; QT Py does not have WiFi.
; QT Py is a ATSAMD21E18 32-bit Cortex M0+
; - 48 MHz 32 bit processor with
; 256KB Flash and 32 KB RAM
; Support *is* possible, but would require
; factoring out all the WiFi functionality (at least).
[env:fib64_micro__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI64_MICRO
; NOT YET SUPPORTED.
; QT Py does not have WiFi.
; QT Py is a ATSAMD21E18 32-bit Cortex M0+
; - 48 MHz 32 bit processor with
; 256KB Flash and 32 KB RAM
; Support *is* possible, but would require
; factoring out all the WiFi functionality (at least).
[env:fib64_nano__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI64_NANO
[env:fib32__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_FIBONACCI32
; NOT YET SUPPORTED
; ESP32 is a work-in-progress
[env:fib256__d1_mini32]
extends = common__d1_mini32
build_flags =
${common.build_flags_esp32}
-D PRODUCT_FIBONACCI256
[env:kraken64__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_KRAKEN64
[env:chamaeleon64__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_CHAMAELEON64
[env:esp_thing__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_ESP8266_THING
[env:1628_rings__d1_mini]
extends = common__d1_mini
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_1628_RINGS