mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-02 20:24:41 +02:00
Merge pull request #2195 from supcik/discussion-2191
Enable HSPI configuration for ESP-IDF
This commit is contained in:
15
Kconfig
15
Kconfig
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user