The problem is the is no pinout diagram. In the Arduino IDE/ESP32 however it does seem to emulate a "ESP32 S3 DevKit.
I wish to add an SD card. You would think it would be simple, but I cannot figure out what GPIO pins (total 4) I should use for the SPI interface.
Some similar ESP32 S3 modules (with documentation) have
GPIO13=MISO
GPIO12=SCK
GPIO11=MOSI
and "SS" which i assume is CS=10.
The default Arduino compile code does not work.
If I use:- #define PIN_MOSI 13 #define PIN_MISO 12 #define PIN_SCK 14 #define PIN_CS 11
and within the code...
void setup(){
Serial.begin(115200);
pinMode(11,OUTPUT);
SPI.begin(PIN_SCK, PIN_MISO, PIN_MOSI);
if(!SD.begin(11)){
Serial.println("Card Mount Failed");
return;
}
The card fails!
I guess my question is what is the correct procedure to initialize an ESP32 S3 to a defined set of SPI pins. Also, can I skip the CS pin and just hold it low.
Thanks in advance for help.
John