Page 1 of 1

ESP32 C3 DEVKIT and SPI

Posted: Mon Jan 09, 2023 8:02 am
by BerndB_ESP32
Hi,
I'm just working with the ESP32 C3 DEVKIT but I can't find the right ports
for MOSI, MISO, SCK and SS on the devboard!

Thank you for any help,
Bernd

Re: ESP32 C3 DEVKIT and SPI

Posted: Mon Jan 09, 2023 9:23 am
by ESP_Sprite
You can configure any (not otherwise used) GPIO for these signals.

Re: ESP32 C3 DEVKIT and SPI

Posted: Mon Jan 09, 2023 9:43 am
by BerndB_ESP32
Thank you for your quick answer,
but in my example code there are only 2 GPIO's
#define SS_PIN 5
#define RST_PIN 0

How to handle MISO & MOSI???

Bernd

Re: ESP32 C3 DEVKIT and SPI

Posted: Tue Jan 10, 2023 12:49 am
by ESP_Sprite
Hard to tell without seeing the rest of your code. It also depends on the SDK you're using (ESP-IDF, Arduino, ...)

Re: ESP32 C3 DEVKIT and SPI

Posted: Wed Jan 11, 2023 9:05 am
by BerndB_ESP32
Here is the solution:
Serial.begin(115200);
Serial.print("MOSI: ");
Serial.println(MOSI);
Serial.print("MISO: ");
Serial.println(MISO);
Serial.print("SCK: ");
Serial.println(SCK);
Serial.print("SS: ");
Serial.println(SS);