mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-14 14:56:35 +00:00
Add support for updated Adafruit 2.4 and 3.5 TFT FeatherWings and HUZZAH32 boards
Support added for the following displays: - [Adafruit TFT FeatherWing - 2.4" 320x240 Touchscreen For All Feathers - V2](https://www.adafruit.com/product/3315) - [Adafruit TFT FeatherWing - 3.5" 480x320 Touchscreen for Feathers - V2 with TSC2007](https://www.adafruit.com/product/3651) Support added for the following board: - [Adafruit HUZZAH32 ESP32 Feather V2 - 8MB Flash + 2 MB PSRAM - STEMMA QT](https://www.adafruit.com/product/5400)
This commit is contained in:
parent
ab4664b4b8
commit
a0ed65c4ce
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
environment:
|
environment:
|
||||||
- out: adafruit
|
- out: adafruit
|
||||||
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35"
|
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35 -e huzzah32-featherwing-24-v2 -e huzzah32-featherwing-35-v2 -e huzzah32-v2-featherwing-24-v2 -e huzzah32-v2-featherwing-35-v2"
|
||||||
- out: az-touch
|
- out: az-touch
|
||||||
env: "az-touch-mod-esp32_ili9341_4MB -e az-touch-mod-esp32_ili9341_8MB"
|
env: "az-touch-mod-esp32_ili9341_4MB -e az-touch-mod-esp32_ili9341_8MB"
|
||||||
- env: d1-mini-esp32_ili9341
|
- env: d1-mini-esp32_ili9341
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
|||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -e esp32-touchdown -e freetouchdeck_4MB -e freetouchdeck_8MB
|
run: pio run -e esp32-touchdown -e freetouchdeck_4MB -e freetouchdeck_8MB
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -e huzzah32-featherwing-24 -e huzzah32-featherwing-35
|
run: pio run -e huzzah32-featherwing-24 -e huzzah32-featherwing-35 -e huzzah32-featherwing-24-v2 -e huzzah32-featherwing-35-v2 -e huzzah32-v2-featherwing-24-v2 -e huzzah32-v2-featherwing-35-v2
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -e lanbon_l8
|
run: pio run -e lanbon_l8
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
|
@ -29,6 +29,8 @@ extra_default_envs =
|
|||||||
; d1-r32-unoshield_ili9341_adc
|
; d1-r32-unoshield_ili9341_adc
|
||||||
; d1-r32-unoshield_ili9486_adc
|
; d1-r32-unoshield_ili9486_adc
|
||||||
; d1-r32-waveshare_ili9486
|
; d1-r32-waveshare_ili9486
|
||||||
|
; esp32s2-featherwing-24-v2
|
||||||
|
; esp32s2-featherwing-35-v2
|
||||||
; esp32-2432s028r_4MB
|
; esp32-2432s028r_4MB
|
||||||
; esp32-3248s035c_4MB
|
; esp32-3248s035c_4MB
|
||||||
; esp32-3248s035c_4MB_lovyan
|
; esp32-3248s035c_4MB_lovyan
|
||||||
@ -44,7 +46,11 @@ extra_default_envs =
|
|||||||
; freetouchdeck-s3_8MB
|
; freetouchdeck-s3_8MB
|
||||||
; gs-t3e_16MB
|
; gs-t3e_16MB
|
||||||
; huzzah32-featherwing-24
|
; huzzah32-featherwing-24
|
||||||
|
; huzzah32-featherwing-24-v2
|
||||||
|
; huzzah32-v2-featherwing-24-v2
|
||||||
; huzzah32-featherwing-35
|
; huzzah32-featherwing-35
|
||||||
|
; huzzah32-featherwing-35-v2
|
||||||
|
; huzzah32-v2-featherwing-35-v2
|
||||||
; lanbon_l8
|
; lanbon_l8
|
||||||
; lanbon_l8_eth
|
; lanbon_l8_eth
|
||||||
; lilygo-lily-pi_ili9481
|
; lilygo-lily-pi_ili9481
|
||||||
|
31
user_setups/esp32/huzzah32-featherwing-24-v2.ini
Normal file
31
user_setups/esp32/huzzah32-featherwing-24-v2.ini
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; HUZZAH32 ESP32 with Featherwing TFT 2.4" V2 ;
|
||||||
|
; - HUZZAH32 esp32 board ;
|
||||||
|
; - ili9341 TFT Featherwing 2.4" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:huzzah32-featherwing-24-v2]
|
||||||
|
extends = arduino_esp32_v2, flash_4mb
|
||||||
|
board = featheresp32
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
-D HASP_MODEL="Adafruit HUZZAH32 ESP32 Featherwing 2.4 V2"
|
||||||
|
${arduino_esp32_v2.build_flags}
|
||||||
|
${esp32.no_ps_ram}
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-24-v2}
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=33
|
||||||
|
-D TFT_CS=15
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
${tft_espi.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
32
user_setups/esp32/huzzah32-featherwing-35-v2.ini
Normal file
32
user_setups/esp32/huzzah32-featherwing-35-v2.ini
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; HUZZAH32 ESP32 with Featherwing TFT 3.5" V2 ;
|
||||||
|
; - HUZZAH32 esp32 board ;
|
||||||
|
; - HX8357D TFT Featherwing 3.5" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:huzzah32-featherwing-35-v2]
|
||||||
|
extends = arduino_esp32_v2, flash_4mb
|
||||||
|
board = featheresp32
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
-D HASP_MODEL="Adafruit HUZZAH32 ESP32 Featherwing 3.5 V2"
|
||||||
|
${arduino_esp32_v2.build_flags}
|
||||||
|
${esp32.no_ps_ram}
|
||||||
|
|
||||||
|
-D LV_INDEV_DEF_READ_PERIOD=30
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-35-v2}
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=10
|
||||||
|
-D TFT_CS=9
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
${tft_espi.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
31
user_setups/esp32/huzzah32-v2-featherwing-24-v2.ini
Normal file
31
user_setups/esp32/huzzah32-v2-featherwing-24-v2.ini
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; HUZZAH32 V2 ESP32 with Featherwing TFT 2.4" V2 ;
|
||||||
|
; - HUZZAH32 V2 w/ 2 MB PSRAM board ;
|
||||||
|
; - ili9341 TFT Featherwing 2.4" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:huzzah32-featherwing-24-v2]
|
||||||
|
extends = arduino_esp32_v2, flash_4mb
|
||||||
|
board = featheresp32
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
-D HASP_MODEL="Adafruit HUZZAH32 V2 ESP32 Featherwing 2.4 V2"
|
||||||
|
${arduino_esp32_v2.build_flags}
|
||||||
|
${esp32.ps_ram}
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-24-v2}
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=33
|
||||||
|
-D TFT_CS=15
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
${tft_espi.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
31
user_setups/esp32/huzzah32-v2-featherwing-35-v2.ini
Normal file
31
user_setups/esp32/huzzah32-v2-featherwing-35-v2.ini
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; HUZZAH32 V2 ESP32 with Featherwing TFT 3.5" V2 ;
|
||||||
|
; - HUZZAH32 V2 w/ 2 MB PSRAM board ;
|
||||||
|
; - HX8357D TFT Featherwing 3.5" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:huzzah32-v2-featherwing-35]
|
||||||
|
extends = arduino_esp32_v2, flash_4mb
|
||||||
|
board = featheresp32
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
-D HASP_MODEL="Adafruit HUZZAH32 V2 ESP32 Featherwing 3.5 V2"
|
||||||
|
${arduino_esp32_v2.build_flags}
|
||||||
|
${esp32.ps_ram}
|
||||||
|
-D LV_INDEV_DEF_READ_PERIOD=30
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-35-v2}
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=10
|
||||||
|
-D TFT_CS=9
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
${tft_espi.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
40
user_setups/esp32s2/esp32s2-featherwing-24-v2.ini
Normal file
40
user_setups/esp32s2/esp32s2-featherwing-24-v2.ini
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; Adafruit ESP32-S2 with Featherwing TFT 2.4" V2 ;
|
||||||
|
; - ESP32-S2 w/ 2 MB PSRAM board ;
|
||||||
|
; - ili9341 TFT Featherwing 2.4" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:esp32s2-featherwing-24-v2]
|
||||||
|
extends = esp32s2_4mb_v2
|
||||||
|
board = esp32s2
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
${esp32s2.build_flags}
|
||||||
|
${esp32.ps_ram}
|
||||||
|
-D HASP_MODEL="Adafruit ESP32-S2 Featherwing 2.4 V2"
|
||||||
|
-D USE_HSPI_PORT
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-24-v2}
|
||||||
|
-D LGFX_USE_V1=1
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=33
|
||||||
|
-D TFT_CS=15
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
${esp32s2.lib_deps}
|
||||||
|
${lovyangfx.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32s2.lib_ignore}
|
||||||
|
TFT_eSPI
|
40
user_setups/esp32s2/esp32s2-featherwing-35-v2.ini
Normal file
40
user_setups/esp32s2/esp32s2-featherwing-35-v2.ini
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; Adafruit ESP32-S2 with Featherwing TFT 3.5" V2 ;
|
||||||
|
; - ESP32-S2 w/ 2 MB PSRAM board ;
|
||||||
|
; - HX8357D TFT Featherwing 3.5" V2 ;
|
||||||
|
; - TSC2007 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:esp32s2-featherwing-24-v2]
|
||||||
|
extends = esp32s2_4mb_v2
|
||||||
|
board = esp32s2
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
${esp32s2.build_flags}
|
||||||
|
${esp32.ps_ram}
|
||||||
|
-D HASP_MODEL="Adafruit ESP32-S2 Featherwing 3.5 V2"
|
||||||
|
-D USE_HSPI_PORT
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.featherwing-35-v2}
|
||||||
|
-D LGFX_USE_V1=1
|
||||||
|
-D TFT_MISO=19
|
||||||
|
-D TFT_MOSI=18
|
||||||
|
-D TFT_SCLK=5
|
||||||
|
-D TFT_DC=10
|
||||||
|
-D TFT_CS=9
|
||||||
|
-D TFT_RST=-1 ; RST
|
||||||
|
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
${esp32s2.lib_deps}
|
||||||
|
${tsc2007.lib_deps}
|
||||||
|
${lovyangfx.lib_deps}
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32s2.lib_ignore}
|
||||||
|
TFT_eSPI
|
@ -122,6 +122,18 @@ featherwing-35 =
|
|||||||
-D TOUCH_DRIVER=0x0610 ;STMPE610
|
-D TOUCH_DRIVER=0x0610 ;STMPE610
|
||||||
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
||||||
|
|
||||||
|
featherwing-35-v2 =
|
||||||
|
-D HX8357D_DRIVER=1
|
||||||
|
-D TFT_WIDTH=320
|
||||||
|
-D TFT_HEIGHT=480
|
||||||
|
-D TFT_ROTATION=0 ; Use default, see TFT_ROTATION values
|
||||||
|
-D SPI_FREQUENCY=27000000
|
||||||
|
-D SPI_TOUCH_FREQUENCY=2500000
|
||||||
|
-D SPI_READ_FREQUENCY=20000000
|
||||||
|
-D USER_SETUP_LOADED=1
|
||||||
|
-D TOUCH_DRIVER=0x2007 ;TSC2007
|
||||||
|
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
||||||
|
|
||||||
featherwing-24 =
|
featherwing-24 =
|
||||||
-D ILI9341_DRIVER=1
|
-D ILI9341_DRIVER=1
|
||||||
-D TFT_WIDTH=240
|
-D TFT_WIDTH=240
|
||||||
@ -132,4 +144,15 @@ featherwing-24 =
|
|||||||
-D SPI_READ_FREQUENCY=20000000
|
-D SPI_READ_FREQUENCY=20000000
|
||||||
-D USER_SETUP_LOADED=1
|
-D USER_SETUP_LOADED=1
|
||||||
-D TOUCH_DRIVER=0x0610 ;STMPE610
|
-D TOUCH_DRIVER=0x0610 ;STMPE610
|
||||||
|
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
||||||
|
|
||||||
|
featherwing-24-v2 =
|
||||||
|
-D ILI9341_DRIVER=1
|
||||||
|
-D TFT_WIDTH=240
|
||||||
|
-D TFT_HEIGHT=320
|
||||||
|
-D TFT_ROTATION=0 ; Use default, see TFT_ROTATION values
|
||||||
|
-D SPI_FREQUENCY=27000000
|
||||||
|
-D SPI_READ_FREQUENCY=20000000
|
||||||
|
-D USER_SETUP_LOADED=1
|
||||||
|
-D TOUCH_DRIVER=0x2007 ;TSC2007
|
||||||
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
;-D SUPPORT_TRANSACTIONS ; Default on ESP32
|
Loading…
x
Reference in New Issue
Block a user