iryna7
January 28, 2024, 7:49am
1
Hi, I'm trying to connect the multiple SPI devices(4 would be nice) on ESP32 which is connected by Slave mode with CS. but can't find 2 more CS.
#define MOSI_PIN 13
#define MISO_PIN 12
#define SCLK_PIN 14
#define CS0_PIN 5
#define CS1_PIN 15
What i want to know more CS pin on the ESP32. any comment would be help for me. thanks in advance.
BR
iryna7
Welcome to the forum
Do you mean that you have run out of pins to use as CS on the fourth device or that you do not have a pin marked CS4 ?
Has the board got any pins marked CS ?
iryna7
January 28, 2024, 8:03am
3
Thank you for your answer. It does not used all pins. I just have no idea which one would be CS2,3. Can I use any empty pins which is not assigned for CS ?
Yes, you can use any GPIO pin as a CS pin. Each device must, of course, have its own CS pin
iryna7
January 28, 2024, 8:15am
5
What a GREAT answer. Thank you!! you have great day.
system
Closed
July 26, 2024, 8:15am
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.