ESP32 has 3 different SPI interfaces, for user available only 2 – HSPI and VSPI. For modules with SPI RAM (PSRAM) interface VSPI is not available as used by PSRAM chip.
Table below has native pinouts for HSPI and VSPI interfaces
SPI Function | ESP32 Pin (HSPI) | ESP32 Pin (VSPI) |
---|---|---|
CLK (Clock) | GPIO14 | GPIO18 |
MISO (Master In Slave Out) | GPIO12 | GPIO19 |
MOSI (Master Out Slave In) | GPIO13 | GPIO23 |
CS (Chip Select) | GPIO15 | GPIO5 |