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
ESP32 C3 DEVKIT and SPI
-
- Posts: 9769
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 C3 DEVKIT and SPI
You can configure any (not otherwise used) GPIO for these signals.
-
- Posts: 10
- Joined: Tue Oct 25, 2022 6:44 am
Re: ESP32 C3 DEVKIT and SPI
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
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
-
- Posts: 9769
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 C3 DEVKIT and SPI
Hard to tell without seeing the rest of your code. It also depends on the SDK you're using (ESP-IDF, Arduino, ...)
-
- Posts: 10
- Joined: Tue Oct 25, 2022 6:44 am
Re: ESP32 C3 DEVKIT and SPI
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);
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: No registered users and 57 guests