File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,12 @@ extern "C" {
64
64
65
65
#define ENABLE_TOUCH_INPUT CONFIG_LV_ENABLE_TOUCH
66
66
67
- #if defined (CONFIG_LV_TFT_DISPLAY_SPI_HSPI )
68
- #if defined (CONFIG_IDF_TARGET_ESP32C3 )
69
- #define TFT_SPI_HOST SPI2_HOST
70
- #else
71
- #define TFT_SPI_HOST HSPI_HOST
72
- #endif
73
- #elif defined (CONFIG_LV_TFT_DISPLAY_SPI_VSPI )
74
- #define TFT_SPI_HOST VSPI_HOST
75
- #elif defined (CONFIG_LV_TFT_DISPLAY_SPI_FSPI )
76
- #define TFT_SPI_HOST FSPI_HOST
67
+ #if defined (CONFIG_LV_TFT_DISPLAY_SPI1_HOST )
68
+ #define TFT_SPI_HOST SPI1_HOST
69
+ #elif defined (CONFIG_LV_TFT_DISPLAY_SPI2_HOST )
70
+ #define TFT_SPI_HOST SPI2_HOST
71
+ #elif defined (CONFIG_LV_TFT_DISPLAY_SPI3_HOST )
72
+ #define TFT_SPI_HOST SPI3_HOST
77
73
#endif
78
74
79
75
#if defined (CONFIG_LV_TFT_DISPLAY_SPI_HALF_DUPLEX )
Original file line number Diff line number Diff line change @@ -469,18 +469,17 @@ menu "LVGL TFT Display controller"
469
469
470
470
choice
471
471
prompt "TFT SPI Bus." if LV_TFT_DISPLAY_PROTOCOL_SPI
472
- default LV_TFT_DISPLAY_SPI_VSPI if LV_PREDEFINED_DISPLAY_TTGO && \
472
+ default LV_TFT_DISPLAY_SPI3_HOST if LV_PREDEFINED_DISPLAY_TTGO && \
473
473
!IDF_TARGET_ESP32S2
474
- default LV_TFT_DISPLAY_SPI_FSPI if IDF_TARGET_ESP32S2
475
474
help
476
475
Select the SPI Bus the TFT Display is attached to.
477
476
478
- config LV_TFT_DISPLAY_SPI_HSPI
479
- bool "HSPI "
480
- config LV_TFT_DISPLAY_SPI_VSPI
481
- bool "VSPI" if !IDF_TARGET_ESP32S2
482
- config LV_TFT_DISPLAY_SPI_FSPI
483
- bool "FSPI" if IDF_TARGET_ESP32S2
477
+ config LV_TFT_DISPLAY_SPI1_HOST
478
+ bool "SPI1_HOST "
479
+ config LV_TFT_DISPLAY_SPI2_HOST
480
+ bool "SPI2_HOST"
481
+ config LV_TFT_DISPLAY_SPI3_HOST
482
+ bool "SPI3_HOST"
484
483
endchoice
485
484
486
485
choice
You can’t perform that action at this time.
0 commit comments