@@ -17,7 +17,7 @@ monitor_speed = 115200
17
17
lib_compat_mode = strict
18
18
lib_deps =
19
19
adafruit/Adafruit Zero DMA Library
20
- adafruit/Adafruit TinyUSB Library
20
+ https://github.com/ adafruit/Adafruit_TinyUSB_Arduino.git
21
21
adafruit/Adafruit NeoPixel
22
22
adafruit/Adafruit SPIFlash
23
23
adafruit/Adafruit DotStar
@@ -28,7 +28,9 @@ lib_deps =
28
28
adafruit/Adafruit BMP280 Library
29
29
adafruit/Adafruit BMP3XX Library
30
30
adafruit/Adafruit DPS310
31
+ adafruit/Adafruit DS248x
31
32
adafruit/Adafruit INA219
33
+ adafruit/Adafruit HDC302x
32
34
adafruit/Adafruit HTS221
33
35
adafruit/Adafruit HTU21DF Library
34
36
adafruit/Adafruit HTU31D Library
@@ -41,15 +43,19 @@ lib_deps =
41
43
adafruit/Adafruit Si7021 Library
42
44
adafruit/Adafruit VCNL4020 Library
43
45
adafruit/Adafruit VCNL4040
46
+ adafruit/Adafruit MCP3421
44
47
adafruit/Adafruit MCP9808 Library
45
48
adafruit/Adafruit MCP9600 Library
46
49
adafruit/Adafruit MPL115A2
47
50
adafruit/Adafruit MPRLS Library
48
51
adafruit/Adafruit MS8607
52
+ adafruit/Adafruit NAU7802 Library
49
53
adafruit/Adafruit TMP117
50
54
adafruit/Adafruit TSL2591 Library
51
55
adafruit/Adafruit_VL53L0X
52
56
adafruit/Adafruit VL53L1X
57
+ stm32duino/STM32duino VL53L4CD
58
+ stm32duino/STM32duino VL53L4CX
53
59
adafruit/Adafruit_VL6180X
54
60
adafruit/Adafruit PM25 AQI Sensor
55
61
adafruit/Adafruit VEML7700 Library
@@ -65,30 +71,37 @@ lib_deps =
65
71
adafruit/Adafruit TouchScreen
66
72
adafruit/Adafruit MQTT Library
67
73
bblanchon/ArduinoJson
68
- PaulStoffregen/OneWire
74
+ https://github.com/pstolarz/OneWireNg.git
69
75
https://github.com/milesburton/Arduino-Temperature-Control-Library.git
70
76
https://github.com/Sensirion/arduino-sht.git
71
77
https://github.com/Sensirion/arduino-i2c-scd4x.git
72
78
https://github.com/Sensirion/arduino-i2c-sen5x.git
73
79
https://github.com/adafruit/WiFiNINA.git
74
80
https://github.com/Starmbi/hp_BH1750.git
75
81
82
+
76
83
; Common build environment for ESP32 platform
77
84
[common:esp32]
78
- platform = espressif32 @ ^6.3.2
79
- lib_ignore = WiFiNINA
85
+ ; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
86
+ ; This is needed for Adafruit Feather C6 in platformio (until 51.03.05):
87
+ platform = https://github.com/pioarduino/platform-espressif32# develop
88
+ lib_ignore = WiFiNINA, WiFi101, OneWire
80
89
monitor_filters = esp32_exception_decoder, time
81
90
82
91
; Common build environment for ESP8266 platform
83
92
[common:esp8266]
84
93
platform = espressif8266
85
- lib_ignore = WiFiNINA, Adafruit TinyUSB Library
94
+ lib_ignore = WiFiNINA, WiFi101, Adafruit TinyUSB Library, OneWire
86
95
87
96
; Common build environment for Atmel/Microchip SAMDx platform
88
97
[common:atsamd]
89
98
platform = atmelsam
99
+ platform_packages =
100
+ platformio/framework-arduino-samd-adafruit@^1.7.13
101
+ platformio/tool-jlink@^1.78811.0
90
102
lib_ldf_mode = deep
91
-
103
+ lib_archive = no ; debug timer issues see https://community.platformio.org/t/choose-usb-stack-as-tiny-usb/22451/5
104
+ lib_ignore = OneWire
92
105
93
106
[common:rp2040]
94
107
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
@@ -101,9 +114,12 @@ board_build.core = earlephilhower
101
114
board_build.filesystem_size = 0.5m
102
115
build_flags = -DUSE_TINYUSB
103
116
; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
104
- lib_ignore = WiFiNINA, Adafruit Zero DMA Library
117
+ lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library, OneWire
105
118
lib_compat_mode = soft ; can be strict once pio detects SleepyDog on RP2040
106
119
120
+
121
+ ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Individual Board Definitions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
122
+
107
123
; ESP32-x Boards ;
108
124
109
125
; Adafruit ESP32 Feather
@@ -112,6 +128,7 @@ extends = common:esp32
112
128
board = featheresp32
113
129
build_flags = -DARDUINO_FEATHER_ESP32
114
130
board_build.filesystem = littlefs
131
+ board_build.partitions = min_spiffs.csv
115
132
116
133
117
134
; Adafruit ESP32 Feather V2
@@ -129,33 +146,67 @@ board = adafruit_itsybitsy_esp32
129
146
build_flags = -DARDUINO_ADAFRUIT_ITSYBITSY_ESP32
130
147
board_build.filesystem = littlefs
131
148
149
+ ; Adafruit ESP32 Feather C6
150
+ [env:adafruit_feather_esp32c6_4mbflash_nopsram]
151
+ extends = common:esp32
152
+ board = adafruit_feather_esp32c6
153
+ build_flags =
154
+ -DARDUINO_ADAFRUIT_FEATHER_ESP32C6
155
+ -DARDUINO_USB_CDC_ON_BOOT =1
156
+ -DCORE_DEBUG_LEVEL =3
157
+ board_build.filesystem = littlefs
158
+ board_build.partitions = min_spiffs.csv
159
+
160
+ ; Espressif ESP32-C6 4MB NO PSRAM esp32-c6-devkitm-1
161
+ [env:espressif_esp32-c6-devkitm-1]
162
+ extends = common:esp32
163
+ board = esp32-c6-devkitm-1
164
+ build_type = debug
165
+ build_flags =
166
+ -DARDUINO_ESPRESSIF_ESP32C6_DEVKITM_1
167
+ -DARDUINO_ADAFRUIT_FEATHER_ESP32C6
168
+ -DNDEBUG =1
169
+ -DDEBUG =1
170
+ -DESP_LOG_LEVEL =5
171
+ -DARDUINO_CORE_DEBUG_LEVEL =5
172
+ -DARDUINO_DEBUG_LEVEL =5
173
+ -DARDUINO_LOG_LEVEL =5
174
+ -DCORE_DEBUG_LEVEL =5
175
+ -DARDUHAL_LOG_LEVEL =5
176
+ board_build.filesystem = littlefs
177
+ board_build.partitions = min_spiffs.csv
132
178
133
179
; Adafruit Feather ESP32-S2
134
180
[env:featheresp32s2]
135
181
extends = common:esp32
136
182
board = featheresp32-s2
137
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2
183
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2 -DBOARD_HAS_PSRAM
184
+ board_build.partitions = tinyuf2-partitions-4MB.csv
138
185
extra_scripts = pre:rename_usb_config.py
139
186
140
187
; Adafruit Feather ESP32-S2 TFT
141
188
[env:adafruit_feather_esp32s2_tft]
142
189
extends = common:esp32
143
190
board = adafruit_feather_esp32s2_tft
144
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_TFT
191
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_TFT -DBOARD_HAS_PSRAM
192
+ board_build.partitions = tinyuf2-partitions-4MB.csv
145
193
extra_scripts = pre:rename_usb_config.py
146
194
147
195
; Adafruit Feather ESP32-S2 Reverse TFT
148
196
[env:adafruit_feather_esp32s2_reversetft]
149
197
extends = common:esp32
150
198
board = adafruit_feather_esp32s2_reversetft
151
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_REVTFT
199
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_REVTFT -DBOARD_HAS_PSRAM
200
+ board_build.partitions = tinyuf2-partitions-4MB.csv
152
201
extra_scripts = pre:rename_usb_config.py
153
202
154
203
; Adafruit Feather ESP32-S3 2MB PSRAM
155
204
[env:adafruit_feather_esp32s3]
156
205
extends = common:esp32
157
206
board = adafruit_feather_esp32s3
158
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3
207
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3 -DBOARD_HAS_PSRAM
208
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
209
+ board_build.partitions = tinyuf2-partitions-4MB.csv
159
210
extra_scripts = pre:rename_usb_config.py
160
211
161
212
; Adafruit Feather ESP32-S3 NO PSRAM
@@ -168,48 +219,65 @@ extra_scripts = pre:rename_usb_config.py
168
219
; Adafruit Feather ESP32-S3 TFT
169
220
[env:adafruit_feather_esp32s3_tft]
170
221
extends = common:esp32
222
+ build_type = debug
223
+ debug_tool = esp-builtin
171
224
board = adafruit_feather_esp32s3_tft
172
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_TFT
225
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_TFT -DBOARD_HAS_PSRAM
226
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
227
+ board_build.partitions = tinyuf2-partitions-4MB.csv
173
228
extra_scripts = pre:rename_usb_config.py
174
229
175
230
; Adafruit Feather ESP32-S3 Reverse TFT
176
231
[env:adafruit_feather_esp32s3_reversetft]
177
232
extends = common:esp32
178
233
board = adafruit_feather_esp32s3_reversetft
179
- build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_REVTFT
234
+ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_REVTFT -DBOARD_HAS_PSRAM
235
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
236
+ board_build.partitions = tinyuf2-partitions-4MB.csv
180
237
extra_scripts = pre:rename_usb_config.py
181
238
182
239
; Adafruit Magtag ESP32-S2
183
240
[env:adafruit_magtag29_esp32s2]
184
241
extends = common:esp32
185
242
board = adafruit_magtag29_esp32s2
186
- build_flags = -DARDUINO_MAGTAG29_ESP32S2
243
+ build_flags = -DARDUINO_MAGTAG29_ESP32S2 -DBOARD_HAS_PSRAM
244
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
245
+ board_build.partitions = tinyuf2-partitions-4MB.csv
187
246
extra_scripts = pre:rename_usb_config.py
188
247
189
248
; Adafruit Metro ESP32-S2
190
249
[env:adafruit_metro_esp32s2]
191
250
extends = common:esp32
192
251
board = adafruit_metro_esp32s2
193
- build_flags = -DARDUINO_METRO_ESP32S2
252
+ build_flags = -DARDUINO_METRO_ESP32S2 -DBOARD_HAS_PSRAM
253
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
254
+ board_build.partitions = tinyuf2-partitions-4MB.csv
194
255
extra_scripts = pre:rename_usb_config.py
195
256
196
257
; Adafruit QT Py ESP32 Pico
197
258
[env:adafruit_qtpy_esp32]
198
259
extends = common:esp32
199
260
board = adafruit_qtpy_esp32
261
+ board_build.partitions = default_8MB.csv
262
+ board_build.filesystem = littlefs
263
+ build_type = debug
200
264
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32
201
265
202
266
; Adafruit QT Py ESP32-C3
203
267
[env:adafruit_qtpy_esp32c3]
204
268
extends = common:esp32
205
269
board = adafruit_qtpy_esp32c3
206
270
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32C3
271
+ board_build.filesystem = littlefs
272
+ board_build.partitions = min_spiffs.csv
207
273
208
274
; Adafruit QT Py ESP32-S2
209
275
[env:adafruit_qtpy_esp32s2]
210
276
extends = common:esp32
211
277
board = adafruit_qtpy_esp32s2
212
- build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S2
278
+ build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S2 -DBOARD_HAS_PSRAM
279
+ ; set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
280
+ board_build.partitions = tinyuf2-partitions-4MB.csv
213
281
extra_scripts = pre:rename_usb_config.py
214
282
215
283
; Adafruit QT Py ESP32-S3 NO PSRAM
@@ -219,6 +287,27 @@ board = adafruit_qtpy_esp32s3_nopsram
219
287
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM
220
288
extra_scripts = pre:rename_usb_config.py
221
289
290
+ ; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8
291
+ [env:espressif_esp32s3_devkitc_1_n8]
292
+ extends = common:esp32
293
+ board = esp32-s3-devkitc-1
294
+ build_type = debug
295
+ build_flags =
296
+ -DUSE_TINYUSB =1
297
+ -DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8
298
+ -DNDEBUG =1
299
+ -DDEBUG =1
300
+ -DESP_LOG_LEVEL =5
301
+ -DARDUINO_CORE_DEBUG_LEVEL =5
302
+ -DARDUINO_DEBUG_LEVEL =5
303
+ ; -DARDUINO_DEBUG_OUTPUT=Serial
304
+ ; -DARDUINO_DEBUG_BAUD=115200
305
+ -DARDUINO_LOG_LEVEL =5
306
+ -DCORE_DEBUG_LEVEL =5
307
+ -DARDUHAL_LOG_LEVEL =5
308
+ board_build.partitions = tinyuf2-partitions-8MB.csv
309
+ extra_scripts = pre:rename_usb_config.py
310
+
222
311
; ESP8266 Boards
223
312
224
313
; Adafruit Feather HUZZAH ESP8266
@@ -242,14 +331,39 @@ build_flags = -DUSE_TINYUSB=1
242
331
[env:adafruit_pyportal_m4_titano]
243
332
extends = common:atsamd
244
333
board = adafruit_pyportal_m4_titano
245
- ; build_type = debug
334
+ build_type = debug
335
+ upload_protocol = sam-ba
246
336
; upload_protocol = jlink
247
- ; debug_tool = jlink
337
+ debug_tool = jlink
338
+ monitor_port = auto
248
339
; monitor_port = jlink
249
- ; debug_init_break =
340
+ ; monitor_port = socket://localhost:19021
341
+ ; debug_init_break = tbreak clearConfiguration
250
342
lib_ignore = USBHost
251
- build_flags = -DUSE_TINYUSB =1
343
+ build_flags = -DUSE_TINYUSB
344
+ -D__SAMD51J20A__
345
+ -DCRYSTALLESS
252
346
-DADAFRUIT_PYPORTAL_M4_TITANO
347
+ -D__SAMD51__
348
+ -D__FPU_PRESENT
349
+ -DARM_MATH_CM4
350
+ -mfloat-abi =hard
351
+ -mfpu =fpv4-sp-d16
352
+ -DCORE_DEBUG_LEVEL =5
353
+ -DARDUINO_USB_CDC_ON_BOOT =1
354
+ -DCFG_TUSB_DEBUG =1
355
+ -DDEBUG =1
356
+ -DNDEBUG =1
357
+ -DUSE_AIRLIFT =1
358
+ -g
359
+ ; -DUSBCON
360
+ ; -UCDC_DISABLED
361
+ ; -UPLUGGABLE_USB_DISABLED
362
+ ; -DCDC_ENABLED
363
+ ; -DPLUGGABLE_USB_ENABLED
364
+ ; -DSERIAL_DEBUG=1
365
+ ; -DSERIAL_PORT=Serial1
366
+ ; -DSERCOM_INSTANCE_SERIAL=1
253
367
254
368
; Adafruit Metro M4 Airlift Lite
255
369
[env:adafruit_metro_m4_airliftlite]
@@ -303,4 +417,3 @@ build_flags =
303
417
; ; No USB stack
304
418
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
305
419
; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
306
-
0 commit comments