Commit 6ee13641 authored by Jacques Supcik's avatar Jacques Supcik

Enable HSPI configuration for ESP-IDF

parent ef7c0209
...@@ -212,6 +212,21 @@ menu "TFT_eSPI" ...@@ -212,6 +212,21 @@ menu "TFT_eSPI"
menu "Display SPI config" menu "Display SPI config"
depends on !TFT_PARALLEL_8_BIT 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 config TFT_MISO
int "TFT MISO pin" int "TFT MISO pin"
default -1 default -1
......
...@@ -223,6 +223,10 @@ ...@@ -223,6 +223,10 @@
// SPI BUS // SPI BUS
#else #else
#if CONFIG_TFT_HSPI_PORT
#define USE_HSPI_PORT
#endif
#if CONFIG_TFT_MISO != -1 #if CONFIG_TFT_MISO != -1
#define TFT_MISO CONFIG_TFT_MISO #define TFT_MISO CONFIG_TFT_MISO
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment