Fix VSPI port for ESP32

ESP32 S2 edits caused a problem
This commit is contained in:
Bodmer committed 2021-11-18 22:03:49 +00:00
1 parent c8c5dd7cbb
commit a2822e6d99
4 files changed
+8 -4

No files matched your search

+5 -1
View File
@@ -47,7 +47,11 @@ SPI3_HOST = 2
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
#endif
#else
#define SPI_PORT 2 //FSPI(ESP32 S2) or VSPI (ESP32)
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT VSPI
#else
#define SPI_PORT 2 //FSPI(ESP32 S2)
#endif
#endif
#ifdef RPI_DISPLAY_TYPE