forked from letscontrolit/ESPEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio_esp82xx_base.ini
357 lines (295 loc) · 14 KB
/
platformio_esp82xx_base.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
;;; ESP82xx base definitions*******************************************
; Basic definitions used in ESP82xx environments ;
; *********************************************************************
[regular_platform]
build_flags = ${core_2_7_4.build_flags}
platform = ${core_2_7_4.platform}
platform_packages = ${core_2_7_4.platform_packages}
lib_ignore = ${core_2_7_4.lib_ignore}
[regular_platform_alt_wifi]
build_flags = ${core_2_7_4_alt_wifi.build_flags}
platform = ${core_2_7_4_alt_wifi.platform}
platform_packages = ${core_2_7_4_alt_wifi.platform_packages}
lib_ignore = ${core_2_7_4_alt_wifi.lib_ignore}
[core302_platform]
build_flags = ${core_stage.build_flags}
platform = ${core_stage.platform}
platform_packages = ${core_stage.platform_packages}
lib_ignore = ${core_stage.lib_ignore}
[beta_platform_2ndheap]
build_flags = ${core_stage_2ndheap.build_flags}
platform = ${core_stage_2ndheap.platform}
platform_packages = ${core_stage_2ndheap.platform_packages}
lib_ignore = ${core_stage_2ndheap.lib_ignore}
[beta_platform]
build_flags = ${core_stage.build_flags}
platform = ${core_stage.platform}
platform_packages = ${core_stage.platform_packages}
lib_ignore = ${core_stage.lib_ignore}
[no_ir]
lib_ignore = IRremoteESP8266
HeatpumpIR
[no_sd]
lib_ignore = ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[no_littlefs]
lib_ignore = LittleFS(esp8266)
[generic_build]
lib_ignore = ${no_ir.lib_ignore}
${no_sd.lib_ignore}
${no_littlefs.lib_ignore}
[esp82xx_common]
lib_archive = ${common.lib_archive}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
targets = ${common.targets}
build_flags = ${debug_flags.build_flags}
${mqtt_flags.build_flags}
-DHTTPCLIENT_1_1_COMPATIBLE=0
build_unflags = -DDEBUG_ESP_PORT
-fexceptions
lib_deps =
Adafruit ILI9341 ESPEasy
Adafruit_ST77xx
Adafruit TSL2591 Library
Adafruit NeoPixel
ESP8266HTTPUpdateServer
ESP8266WebServer
I2Cdevlib-Core
ITG3205
LOLIN_EPD
FrogmoreScd30
Makuna/NeoPixelBus @ 2.6.9
Multi Channel Relay Arduino Library
ShiftRegister74HC595_NonTemplate
SparkFun ADXL345 Arduino Library
SparkFun VL53L1X 4m Laser Distance Sensor @ 1.2.9
SparkFun SCD4x Arduino Library @ ^1.0.4
VL53L0X @ 1.3.0
ccronexpr
adafruit/Adafruit BusIO @ ^1.10.0
adafruit/Adafruit GFX Library@^1.11.1
bblanchon/ArduinoJson @ ^6.17.2
rlogiacco/CircularBuffer
td-er/ESPeasySerial @ 2.0.15
td-er/SC16IS752 @ ^1.0.2
td-er/RABurton ESP8266 Mutex @ ^1.0.2
sparkfun/SparkFun MAX1704x Fuel Gauge Arduino Library @ ^1.0.3
VL53L0X @ 1.3.0
RAK12019_LTR390_UV_Light
Adafruit NeoMatrix
IthoCC1101
Adafruit PCD8544 Nokia 5110 LCD library
lib_ignore = ${esp82xx_defaults.lib_ignore}
IRremoteESP8266
HeatpumpIR
ServoESP32
TinyWireM
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
monitor_filters = esp8266_exception_decoder
extra_scripts = pre:tools/pio/pre_default_check.py
${extra_scripts_esp8266.extra_scripts}
;;; NORMAL (STABLE) ***************************************************
; normal version with stable plugins ;
; *********************************************************************
[normal]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
lib_ignore = ${regular_platform.lib_ignore}
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[normal_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags}
lib_ignore = ${regular_platform_alt_wifi.lib_ignore}
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[normal_beta]
platform = ${beta_platform.platform}
platform_packages = ${beta_platform.platform_packages}
build_flags = ${beta_platform.build_flags}
lib_ignore = ${beta_platform.lib_ignore}
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
;;; COLLECTION ********************************************************
; additional plugins (and dependend code) that is marked as COLLECTION ;
; Includes "normal" + "collection" plugins ;
; **********************************************************************
[collection]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
-DPLUGIN_BUILD_COLLECTION
-DLIMIT_BUILD_SIZE
-DDISABLE_SC16IS752_Serial
lib_ignore = ${regular_platform.lib_ignore}
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[collection_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags}
-DPLUGIN_BUILD_COLLECTION
-DLIMIT_BUILD_SIZE
-DDISABLE_SC16IS752_Serial
lib_ignore = ${regular_platform_alt_wifi.lib_ignore}
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[collection_beta]
platform = ${beta_platform.platform}
platform_packages = ${beta_platform.platform_packages}
build_flags = ${beta_platform.build_flags}
-DPLUGIN_BUILD_COLLECTION
-DLIMIT_BUILD_SIZE
-DDISABLE_SC16IS752_Serial
lib_ignore = ${beta_platform.lib_ignore}
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
;;; IR ***********************************************************
; IR builds ;
; *********************************************************************
[ir]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
lib_ignore = ESP32_ping
ESP32WebServer
ServoESP32
ESP32HTTPUpdateServer
ESP8266SdFat
SD(esp8266)
SD
SDFS
LittleFS(esp8266)
[ir_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags}
lib_ignore = ${ir.lib_ignore}
[minimal_ir]
extends = ir
build_flags = ${ir.build_flags}
-DPLUGIN_BUILD_MINIMAL_IR
[minimal_ir_extended]
extends = ir
build_flags = ${ir.build_flags}
-DPLUGIN_BUILD_MINIMAL_IRext
[normal_ir]
extends = ir
build_flags = ${ir.build_flags}
-DPLUGIN_BUILD_NORMAL_IR
[normal_ir_extended]
extends = ir
build_flags = ${ir.build_flags}
-DPLUGIN_BUILD_IR_EXTENDED
[normal_ir_extended_no_rx]
extends = ir
build_flags = ${ir.build_flags}
-DPLUGIN_BUILD_IR_EXTENDED_NO_RX
;;; 1MB flash nodes **************************************************
; Layout for 1M flash nodes ;
; *********************************************************************
[esp82xx_1M]
extends = esp82xx_common
build_flags = -DBUILD_NO_DEBUG
-DFEATURE_SD=0
-Os
-s
${esp82xx_common.build_flags}
extra_scripts = ${esp82xx_common.extra_scripts}
lib_ignore = ${esp82xx_common.lib_ignore}
ESP8266SdFat
SD
SDFS
SD(esp8266)
LittleFS
ArduinoOTA
ESP8266mDNS
[esp8266_1M]
extends = esp82xx_1M
board = esp8266_1M128k
build_flags = ${esp82xx_1M.build_flags}
extra_scripts = ${esp82xx_1M.extra_scripts}
;;; Minimal ***********************************************************
; Minimal build size for OTA ;
; *********************************************************************
[esp82xx_1M_OTA]
extends = esp82xx_1M
build_flags = ${esp82xx_1M.build_flags}
-DPLUGIN_BUILD_MINIMAL_OTA
-DDISABLE_SC16IS752_Serial
-DFEATURE_GPIO_USE_ESP8266_WAVEFORM=0
[esp8266_1M_OTA]
extends = esp82xx_1M_OTA
board = esp8266_1M128k_OTA
build_flags = ${esp82xx_1M_OTA.build_flags}
lib_ignore = ${esp82xx_1M.lib_ignore}
; Adding the libs below to the lib_ignore will even increase build size
; Adafruit TCS34725
; RN2xx3 Arduino Library
;;; 2MB flash nodes **************************************************
; Layout for 2M flash nodes ;
; *********************************************************************
[esp8266_2M256]
extends = esp82xx_common
board = esp8266_2M256
build_flags = ${esp82xx_common.build_flags}
[espWroom2M256]
extends = esp82xx_common
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board = esp_wroom_02
board_build.ldscript = eagle.flash.2m256.ld
build_flags = ${esp82xx_common.build_flags}
;;; 4MB flash nodes **************************************************
; Layout for 4M flash nodes ;
; *********************************************************************
[esp8266_4M1M]
extends = esp82xx_common
board = esp8266_4M1M_board
build_flags = ${esp82xx_common.build_flags}
extra_scripts = ${esp82xx_common.extra_scripts}
[esp8266_4M2M]
extends = esp82xx_common
board = esp8266_4M2M_board
build_flags = ${esp82xx_common.build_flags}
extra_scripts = ${esp82xx_common.extra_scripts}
;;; 16MB flash nodes *************************************************
; Layout for 16M flash nodes ;
; *********************************************************************
; Configuration for the Wemos D1 mini pro (16M)
; This configuration can only be used with core versions 2.5.0 or newer.
; Performance of 14M SPIFFS is really slow.
; See https://github.com/esp8266/Arduino/issues/5932
[esp8266_16M]
extends = esp82xx_common
board = esp8266_16M14M_board
build_flags = -DSPIFFS_MAX_OPEN_FILES=20
${esp82xx_common.build_flags}