Enable HSPI configuration for ESP-IDF

This commit is contained in:
Jacques Supcik
2022-11-21 13:39:16 +01:00
parent ef7c020980
commit 6ee13641cf
2 changed files with 19 additions and 0 deletions

15
Kconfig
View File

@@ -212,6 +212,21 @@ menu "TFT_eSPI"
menu "Display SPI config"
depends on !TFT_PARALLEL_8_BIT
choice TFT_SPI_PORT
prompt "SPI port"
default TFT_SPI_2_HOST
help
The ESP32 has 2 free SPI ports i.e. VSPI (SPI2) and HSPI (SPI3),
the VSPI is the default. If the VSPI port is in use and pins are
not accessible (e.g. TTGO T-Beam) then use the HSPI port for the
TFT display.
config TFT_VSPI_PORT
bool "VSPI (SPI2)"
config TFT_HSPI_PORT
bool "HSPI (SPI3)"
endchoice
config TFT_MISO
int "TFT MISO pin"
default -1

View File

@@ -223,6 +223,10 @@
// SPI BUS
#else
#if CONFIG_TFT_HSPI_PORT
#define USE_HSPI_PORT
#endif
#if CONFIG_TFT_MISO != -1
#define TFT_MISO CONFIG_TFT_MISO
#endif