mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-19 12:57:19 +00:00

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)
41 lines
1.0 KiB
INI
41 lines
1.0 KiB
INI
;***************************************************;
|
|
; 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
|