Skip to content

Commit

Permalink
Merge pull request #643 from tyeth/new-pio-build-targets-funhouse-qtp…
Browse files Browse the repository at this point in the history
…ys3n4r2-esp32s3devkitc

New pio build targets
  • Loading branch information
tyeth authored Oct 15, 2024
2 parents e281576 + 86e05d2 commit c0af0ad
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-clang-doxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ jobs:
"feather_esp32s3_debug",
"feather_esp32s3_4mbflash_2mbpsram_debug",
"feather_esp32s3_tft_debug",
"feather_esp32s3_reverse_tft_debug",
]
steps:
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -618,7 +619,7 @@ jobs:
- name: list
run: |
ls
ls examples/*/build/
ls -R examples/*/build/
- name: Rename build artifacts to reflect the platform name
run: |
mv examples/*/build/*/wippersnapper_debug.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

94 changes: 89 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,21 @@ lib_deps =
https://github.com/Sensirion/arduino-i2c-sen5x.git
https://github.com/adafruit/WiFiNINA.git
https://github.com/Starmbi/hp_BH1750.git
;;;;;;;;;;; FunHouse / LVGL Boards ;;;;;;;;;;;;;;
https://github.com/adafruit/Adafruit_HX8357_Library.git
https://github.com/adafruit/Adafruit_ILI9341.git
https://github.com/adafruit/Adafruit_STMPE610.git
https://github.com/adafruit/Adafruit-ST7735-Library.git
https://github.com/adafruit/Adafruit_TouchScreen.git
https://github.com/brentru/lvgl.git#wippersnapper
https://github.com/brentru/Adafruit_LvGL_Glue.git#development


; Common build environment for ESP32 platform
[common:esp32]
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
; This is needed for Adafruit Feather C6 in platformio (until 51.03.05):
platform = https://github.com/pioarduino/platform-espressif32#develop
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
; This is needed for occasional new features and bug fixes
; platform = https://github.com/pioarduino/platform-espressif32#develop
lib_ignore = WiFiNINA, WiFi101, OneWire
monitor_filters = esp32_exception_decoder, time

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

; Adafruit Funhouse ESP32-S2
[env:adafruit_funhouse_esp32s2]
extends = common:esp32
board = adafruit_funhouse_esp32s2
build_flags = -DARDUINO_FUNHOUSE -DBOARD_HAS_PSRAM
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
extra_scripts = pre:rename_usb_config.py

; Adafruit Funhouse ESP32-S2
[env:adafruit_funhouse_esp32s2_debug]
extends = common:esp32
board = adafruit_funhouse_esp32s2
;lib_extra_dirs =
build_type = debug
build_flags =
-DARDUINO_FUNHOUSE
-DBOARD_HAS_PSRAM
-DCFG_TUSB_DEBUG=1
-DDEBUG=1
-DESP_LOG_LEVEL=ESP_LOG_VERBOSE
-DARDUINO_CORE_DEBUG_LEVEL=5
-DCORE_DEBUG_LEVEL=5
-DARDUHAL_LOG_LEVEL=5
; USB Configuration
; Uncomment if USB CDC on boot is needed
; -DARDUINO_USB_CDC_ON_BOOT=1
; -DARDUINO_USB_MODE=0 ; 0 for CDC + TinyUSB, 1 for Hardware CDC + JTAG
; LVGL Debugging
-DLV_USE_DEBUG=1
-DLV_USE_LOG=1
-DLV_LOG_PRINTF=1
-DLV_LOG_COLOR=1
-DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
extra_scripts = pre:rename_usb_config.py

; Adafruit QT Py ESP32 Pico
[env:adafruit_qtpy_esp32]
extends = common:esp32
Expand Down Expand Up @@ -287,10 +333,50 @@ board = adafruit_qtpy_esp32s3_nopsram
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM
extra_scripts = pre:rename_usb_config.py

; Adafruit QT Py ESP32-S3 with PSRAM
[env:adafruit_qtpy_esp32s3_with_psram]
extends = common:esp32
board = adafruit_qtpy_esp32s3_n4r2
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 -DBOARD_HAS_PSRAM
extra_scripts = pre:rename_usb_config.py

[env:adafruit_qtpy_esp32s3_with_psram_debug]
extends = common:esp32
board = adafruit_qtpy_esp32s3_n4r2
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
build_type = debug
build_flags =
-DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2
-DBOARD_HAS_PSRAM
-DCFG_TUSB_DEBUG=1
-DNDEBUG=1
-DDEBUG=1
-DESP_LOG_LEVEL=5
-DARDUINO_CORE_DEBUG_LEVEL=5
-DARDUINO_DEBUG_LEVEL=5
# -DARDUINO_DEBUG_OUTPUT=Serial
# -DARDUINO_DEBUG_BAUD=115200
-DARDUINO_USB_CDC_ON_BOOT=1
; cdc + usb otg (tinyusb)
-DARDUINO_USB_MODE=0
; hwcdc jtag
;-DARDUINO_USB_MODE=1
-DARDUINO_LOG_LEVEL=5
-DCORE_DEBUG_LEVEL=5
-DARDUHAL_LOG_LEVEL=5
extra_scripts = pre:rename_usb_config.py

; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8
[env:espressif_esp32s3_devkitc_1_n8]
extends = common:esp32
board = esp32-s3-devkitc-1
build_flags = -DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8
extra_scripts = pre:rename_usb_config.py

; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8 (DEBUG)
[env:espressif_esp32s3_devkitc_1_n8_debug]
extends = common:esp32
board = esp32-s3-devkitc-1
build_type = debug
build_flags =
-DUSE_TINYUSB=1
Expand All @@ -300,8 +386,6 @@ build_flags =
-DESP_LOG_LEVEL=5
-DARDUINO_CORE_DEBUG_LEVEL=5
-DARDUINO_DEBUG_LEVEL=5
; -DARDUINO_DEBUG_OUTPUT=Serial
; -DARDUINO_DEBUG_BAUD=115200
-DARDUINO_LOG_LEVEL=5
-DCORE_DEBUG_LEVEL=5
-DARDUHAL_LOG_LEVEL=5
Expand Down

0 comments on commit c0af0ad

Please sign in to comment.