Skip to content

Commit c0af0ad

Browse files
authored
Merge pull request #643 from tyeth/new-pio-build-targets-funhouse-qtpys3n4r2-esp32s3devkitc
New pio build targets
2 parents e281576 + 86e05d2 commit c0af0ad

File tree

5 files changed

+96
-6
lines changed

5 files changed

+96
-6
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ jobs:
569569
"feather_esp32s3_debug",
570570
"feather_esp32s3_4mbflash_2mbpsram_debug",
571571
"feather_esp32s3_tft_debug",
572+
"feather_esp32s3_reverse_tft_debug",
572573
]
573574
steps:
574575
- uses: actions/setup-python@v5
@@ -618,7 +619,7 @@ jobs:
618619
- name: list
619620
run: |
620621
ls
621-
ls examples/*/build/
622+
ls -R examples/*/build/
622623
- name: Rename build artifacts to reflect the platform name
623624
run: |
624625
mv examples/*/build/*/wippersnapper_debug.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

platformio.ini

Lines changed: 89 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,21 @@ lib_deps =
7878
https://github.com/Sensirion/arduino-i2c-sen5x.git
7979
https://github.com/adafruit/WiFiNINA.git
8080
https://github.com/Starmbi/hp_BH1750.git
81+
;;;;;;;;;;; FunHouse / LVGL Boards ;;;;;;;;;;;;;;
82+
https://github.com/adafruit/Adafruit_HX8357_Library.git
83+
https://github.com/adafruit/Adafruit_ILI9341.git
84+
https://github.com/adafruit/Adafruit_STMPE610.git
85+
https://github.com/adafruit/Adafruit-ST7735-Library.git
86+
https://github.com/adafruit/Adafruit_TouchScreen.git
87+
https://github.com/brentru/lvgl.git#wippersnapper
88+
https://github.com/brentru/Adafruit_LvGL_Glue.git#development
8189

8290

8391
; Common build environment for ESP32 platform
8492
[common:esp32]
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
93+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
94+
; This is needed for occasional new features and bug fixes
95+
; platform = https://github.com/pioarduino/platform-espressif32#develop
8896
lib_ignore = WiFiNINA, WiFi101, OneWire
8997
monitor_filters = esp32_exception_decoder, time
9098

@@ -254,6 +262,44 @@ build_flags = -DARDUINO_METRO_ESP32S2 -DBOARD_HAS_PSRAM
254262
board_build.partitions = tinyuf2-partitions-4MB.csv
255263
extra_scripts = pre:rename_usb_config.py
256264

265+
; Adafruit Funhouse ESP32-S2
266+
[env:adafruit_funhouse_esp32s2]
267+
extends = common:esp32
268+
board = adafruit_funhouse_esp32s2
269+
build_flags = -DARDUINO_FUNHOUSE -DBOARD_HAS_PSRAM
270+
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
271+
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
272+
extra_scripts = pre:rename_usb_config.py
273+
274+
; Adafruit Funhouse ESP32-S2
275+
[env:adafruit_funhouse_esp32s2_debug]
276+
extends = common:esp32
277+
board = adafruit_funhouse_esp32s2
278+
;lib_extra_dirs =
279+
build_type = debug
280+
build_flags =
281+
-DARDUINO_FUNHOUSE
282+
-DBOARD_HAS_PSRAM
283+
-DCFG_TUSB_DEBUG=1
284+
-DDEBUG=1
285+
-DESP_LOG_LEVEL=ESP_LOG_VERBOSE
286+
-DARDUINO_CORE_DEBUG_LEVEL=5
287+
-DCORE_DEBUG_LEVEL=5
288+
-DARDUHAL_LOG_LEVEL=5
289+
; USB Configuration
290+
; Uncomment if USB CDC on boot is needed
291+
; -DARDUINO_USB_CDC_ON_BOOT=1
292+
; -DARDUINO_USB_MODE=0 ; 0 for CDC + TinyUSB, 1 for Hardware CDC + JTAG
293+
; LVGL Debugging
294+
-DLV_USE_DEBUG=1
295+
-DLV_USE_LOG=1
296+
-DLV_LOG_PRINTF=1
297+
-DLV_LOG_COLOR=1
298+
-DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE
299+
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
300+
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
301+
extra_scripts = pre:rename_usb_config.py
302+
257303
; Adafruit QT Py ESP32 Pico
258304
[env:adafruit_qtpy_esp32]
259305
extends = common:esp32
@@ -287,10 +333,50 @@ board = adafruit_qtpy_esp32s3_nopsram
287333
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM
288334
extra_scripts = pre:rename_usb_config.py
289335

336+
; Adafruit QT Py ESP32-S3 with PSRAM
337+
[env:adafruit_qtpy_esp32s3_with_psram]
338+
extends = common:esp32
339+
board = adafruit_qtpy_esp32s3_n4r2
340+
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 -DBOARD_HAS_PSRAM
341+
extra_scripts = pre:rename_usb_config.py
342+
343+
[env:adafruit_qtpy_esp32s3_with_psram_debug]
344+
extends = common:esp32
345+
board = adafruit_qtpy_esp32s3_n4r2
346+
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
347+
build_type = debug
348+
build_flags =
349+
-DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2
350+
-DBOARD_HAS_PSRAM
351+
-DCFG_TUSB_DEBUG=1
352+
-DNDEBUG=1
353+
-DDEBUG=1
354+
-DESP_LOG_LEVEL=5
355+
-DARDUINO_CORE_DEBUG_LEVEL=5
356+
-DARDUINO_DEBUG_LEVEL=5
357+
# -DARDUINO_DEBUG_OUTPUT=Serial
358+
# -DARDUINO_DEBUG_BAUD=115200
359+
-DARDUINO_USB_CDC_ON_BOOT=1
360+
; cdc + usb otg (tinyusb)
361+
-DARDUINO_USB_MODE=0
362+
; hwcdc jtag
363+
;-DARDUINO_USB_MODE=1
364+
-DARDUINO_LOG_LEVEL=5
365+
-DCORE_DEBUG_LEVEL=5
366+
-DARDUHAL_LOG_LEVEL=5
367+
extra_scripts = pre:rename_usb_config.py
368+
290369
; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8
291370
[env:espressif_esp32s3_devkitc_1_n8]
292371
extends = common:esp32
293372
board = esp32-s3-devkitc-1
373+
build_flags = -DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8
374+
extra_scripts = pre:rename_usb_config.py
375+
376+
; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8 (DEBUG)
377+
[env:espressif_esp32s3_devkitc_1_n8_debug]
378+
extends = common:esp32
379+
board = esp32-s3-devkitc-1
294380
build_type = debug
295381
build_flags =
296382
-DUSE_TINYUSB=1
@@ -300,8 +386,6 @@ build_flags =
300386
-DESP_LOG_LEVEL=5
301387
-DARDUINO_CORE_DEBUG_LEVEL=5
302388
-DARDUINO_DEBUG_LEVEL=5
303-
; -DARDUINO_DEBUG_OUTPUT=Serial
304-
; -DARDUINO_DEBUG_BAUD=115200
305389
-DARDUINO_LOG_LEVEL=5
306390
-DCORE_DEBUG_LEVEL=5
307391
-DARDUHAL_LOG_LEVEL=5

0 commit comments

Comments
 (0)