ESP32 C3 DEVKIT and SPI

BerndB_ESP32
Posts: 10
Joined: Tue Oct 25, 2022 6:44 am

ESP32 C3 DEVKIT and SPI

Postby BerndB_ESP32 » Mon Jan 09, 2023 8:02 am

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

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 C3 DEVKIT and SPI

Postby ESP_Sprite » Mon Jan 09, 2023 9:23 am

You can configure any (not otherwise used) GPIO for these signals.

BerndB_ESP32
Posts: 10
Joined: Tue Oct 25, 2022 6:44 am

Re: ESP32 C3 DEVKIT and SPI

Postby BerndB_ESP32 » Mon Jan 09, 2023 9:43 am

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

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 C3 DEVKIT and SPI

Postby ESP_Sprite » Tue Jan 10, 2023 12:49 am

Hard to tell without seeing the rest of your code. It also depends on the SDK you're using (ESP-IDF, Arduino, ...)

BerndB_ESP32
Posts: 10
Joined: Tue Oct 25, 2022 6:44 am

Re: ESP32 C3 DEVKIT and SPI

Postby BerndB_ESP32 » Wed Jan 11, 2023 9:05 am

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);

Who is online

Users browsing this forum: Corand and 90 guests