Started by dandrade, March 31, 2021, 11:49:30 pm

Previous topic - Next topic


What PINs are defined for SPI?

thanks help


April 01, 2021, 04:01:28 pm #1 Last Edit: April 01, 2021, 04:30:11 pm by LubOlimex
The default pins for hardware SPIs are not available - one of them is used for the Ethernet, the other is used for the SD card (and GPIO12 is used for Ethernet power enable-disable).

However, you can use any free GPIO for SPI as long as you re-define the hardware SPI, albeit this limits their clock to 40Mhz (down from 80Mhz). This reduction in speed is because everything goes through an extra GPIO layer.

You should read more about hardware SPI at the ESP32 wiki here:

Technical support and documentation manager at Olimex