-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathplatformio.ini
270 lines (245 loc) · 8.46 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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
[platformio]
; Added this here to "hard code" the environment for macro debugging/visuals
default_envs = esp32_wifi_tft
[common]
framework = arduino
lib_deps =
https://github.com/tzapu/WiFiManager.git ;#feature_asyncwebserver
pstolarz/OneWireNg@^0.13.0
https://github.com/pstolarz/Arduino-Temperature-Control-Library.git
bblanchon/ArduinoJson @ ^6.20.1
bblanchon/StreamUtils @ ^1.5.0
; https://github.com/thorrak/AsyncTCP
; https://github.com/thorrak/ESPAsyncWebServer.git
https://github.com/thorrak/Arduino-Log.git ; // Need this until ArduinoLog merges https://github.com/thijse/Arduino-Log/pull/21
; Let's also include some other common build flags for ease-of-use
build_flags =
!python3 scripts/gen_version.py
-DCONFIG_USE_NATIVE_CPP_NEW
upload_speed = 460800
monitor_speed = 115200
; These are true for most devices on MacOS - Will likely need to be changed if compiling on other platforms
build_type = release
monitor_dtr = 1
monitor_rts = 1
; [env:esp32_m5stickc_plus]
; platform = espressif32
; board = lolin_d32
; framework = ${common.framework}
; ; For esp32_wifi_tft we want to enable LCD support, TFT support, and WiFi support
; build_flags =
; ${common.build_flags}
; -DBREWPI_LCD
; -DBREWPI_TFT
; -DESP8266_WiFi
; -DHAS_BLUETOOTH
; -DEXTERN_SENSOR_ACTUATOR_SUPPORT
; lib_deps =
; ${common.lib_deps}
; https://github.com/PaulStoffregen/XPT2046_Touchscreen
; Adafruit GFX Library
; Adafruit ILI9341
; Adafruit BusIO
; AsyncTCP
; h2zero/NimBLE-Arduino @ ^1.3.7 ; https://github.com/h2zero/NimBLE-Arduino.git
; upload_speed = 1500000
; monitor_speed = ${common.monitor_speed}
; board_build.partitions = 4mb_inc_ota.csv
; build_type = ${common.build_type}
; monitor_dtr = ${common.monitor_dtr}
; monitor_rts = ${common.monitor_rts}
; ;build_board.filesystem = spiffs
; monitor_filters =
; esp32_exception_decoder
[env:esp32_wifi_tft]
platform = espressif32
board = lolin_d32
framework = arduino
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.7
board_build.arduino.upstream_packages = no
; For esp32_wifi_tft we want to enable LCD support, TFT support, and WiFi support
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_TFT
-DESP8266_WiFi
-DHAS_BLUETOOTH
-DEXTERN_SENSOR_ACTUATOR_SUPPORT
; -DENABLE_PROMETHEUS_SERVER
-DENABLE_HTTP_INTERFACE
-DCONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
-DCONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=1
-DESP32_STOCK
lib_deps =
${common.lib_deps}
https://github.com/PaulStoffregen/XPT2046_Touchscreen
Adafruit GFX Library
Adafruit ILI9341
Adafruit BusIO
h2zero/NimBLE-Arduino @ ^1.4.1 ; https://github.com/h2zero/NimBLE-Arduino.git
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board_build.partitions = 4mb_inc_ota.csv
;board_build.filesystem = spiffs
build_type = ${common.build_type}
monitor_filters =
esp32_exception_decoder
[env:esp32_wifi_iic]
platform = espressif32
board = lolin_d32
framework = ${common.framework}
; For esp32_wifi_iic we want to enable LCD support, IIC support, and WiFi support
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_IIC
-DESP8266_WiFi
-DHAS_BLUETOOTH
-DEXTERN_SENSOR_ACTUATOR_SUPPORT
; -DENABLE_PROMETHEUS_SERVER
-DENABLE_HTTP_INTERFACE
-DCONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
-DCONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=1
-DESP32_STOCK
lib_deps =
${common.lib_deps}
h2zero/NimBLE-Arduino @ ^1.3.7 ; https://github.com/h2zero/NimBLE-Arduino.git
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board_build.partitions = 4mb_inc_ota.csv
;board_build.filesystem = spiffs
build_type = ${common.build_type}
monitor_filters =
esp32_exception_decoder
[env:esp8266_wifi]
; The latest platform has a bug that causes SIGNIFICANT inconsistency in connecting to WiFi. Rolling back for now.
platform = [email protected]
board = d1_mini
framework = ${common.framework}
board_build.filesystem = littlefs
; For esp8266_wifi we want to enable LCD support, IIC support, and WiFi support
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_IIC
-DESP8266_WiFi
-DENABLE_HTTP_INTERFACE
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK221
lib_deps =
${common.lib_deps}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
build_type = ${common.build_type}
monitor_filters = esp8266_exception_decoder, default
[env:esp8266_serial]
platform = [email protected]
board = d1_mini
framework = ${common.framework}
; For esp8266_serial we want to enable LCD support and IIC support, but disable WiFi support
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_IIC
-DESP8266_Serial
lib_deps =
${common.lib_deps}
upload_speed = ${common.upload_speed}
monitor_speed = 57600
;upload_port = ${common.upload_port}
;monitor_port = ${common.monitor_port}
build_type = ${common.build_type}
board_build.filesystem = littlefs
monitor_filters = esp8266_exception_decoder, default
; [env:esp32_c3_wifi]
; platform = espressif32
; board = lolin_c3_mini
; framework = ${common.framework}
; ; For esp32_c3_wifi we want to enable LCD support, TFT support, and WiFi support
; build_flags =
; ${common.build_flags}
; -DBREWPI_LCD
; -DBREWPI_IIC
; -DESP8266_WiFi
; -DEXTERN_SENSOR_ACTUATOR_SUPPORT
; ; -DENABLE_PROMETHEUS_SERVER
; ; -DENABLE_HTTP_INTERFACE
; -DESP32C3
; lib_deps =
; ${common.lib_deps}
; ; platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master
; upload_speed = ${common.upload_speed}
; monitor_speed = ${common.monitor_speed}
; board_build.partitions = 4mb_inc_ota.csv
; ;board_build.filesystem = spiffs
; build_type = ${common.build_type}
; monitor_filters =
; esp32_exception_decoder
[env:esp32_s2_wifi]
platform = espressif32
board = lolin_s2_mini
framework = ${common.framework}
; v4.4.4 of esp-idf introduces a bug in the IIC implementation that causes MASSIVE delays
; in the IIC bus on the S2 (meaning that writes to the LCD grind the controller to a halt).
; This appears to be related to https://github.com/espressif/arduino-esp32/issues/8480#issuecomment-1708909457
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.12
; For esp32_s2_wifi we want to enable LCD support, IIC support, and WiFi support
; There is no Bluetooth support on this chip.
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_IIC
-DESP8266_WiFi
-DENABLE_HTTP_INTERFACE
-DEXTERN_SENSOR_ACTUATOR_SUPPORT
; -DENABLE_PROMETHEUS_SERVER
; -DENABLE_HTTP_INTERFACE
-DESP32S2
lib_deps =
${common.lib_deps}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board_build.partitions = 4mb_inc_ota.csv
;board_build.filesystem = spiffs
;board_build.filesystem = littlefs
build_type = ${common.build_type}
monitor_filters =
esp32_exception_decoder
[env:esp32_s2_serial]
platform = espressif32
board = lolin_s2_mini
framework = ${common.framework}
; v4.4.4 of esp-idf introduces a bug in the IIC implementation that causes MASSIVE delays
; in the IIC bus on the S2 (meaning that writes to the LCD grind the controller to a halt).
; This appears to be related to https://github.com/espressif/arduino-esp32/issues/8480#issuecomment-1708909457
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.12
; For esp32_s2_serial we want to enable LCD support, IIC support, and Serial support
; There is no Bluetooth support on this chip.
build_flags =
${common.build_flags}
-DBREWPI_LCD
-DBREWPI_IIC
-DESP8266_Serial
; -DEXTERN_SENSOR_ACTUATOR_SUPPORT
-DESP32S2
lib_deps =
${common.lib_deps}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board_build.partitions = 4mb_inc_ota.csv
;board_build.filesystem = spiffs
;board_build.filesystem = littlefs
build_type = ${common.build_type}
monitor_filters =
esp32_exception_decoder