How to select between multiple HW SPI peripherals
Posted: Wed Sep 01, 2021 8:23 am
Hello. I have checked multiple ESP32 arduino platform examples for SPI devices such as LIS3DH accelerometer, SSD1306 oled display and I cannot understand one thing. Whenever the HW SPI is initialised, it defaults to pins GPIO23(MOSI), GPIO19(MISO), GPIO18(SCLK). Since ESP32 has multiple HW SPI peripherals, what if I have wired my SPI to another HW SPI peripheral GPIO13(MOSI), GPIO12(MISO), GPIO14(SCLK). How can I change that?