ESP32-C3-MINI-1-H4 SPI/ I2C

Sophi9999
Posts: 3
Joined: Mon Aug 19, 2024 5:22 pm

ESP32-C3-MINI-1-H4 SPI/ I2C

Postby Sophi9999 » Mon Aug 19, 2024 7:18 pm

Hello!
I wondered if there are specific pins to use for I2C and SPI for the ESP32-C3-MINI?
I haven't been able to find this in a datasheet/ anywhere else.

Is there room for both I2C and SPI ? Thanks in advance!

MicroController
Posts: 1541
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32-C3-MINI-1-H4 SPI/ I2C

Postby MicroController » Tue Aug 20, 2024 6:19 pm

There aren't really specific pins for either I2C or SPI. You can route the signals to (almost?) any pin you like, and use I2C and SPI at the same time (on seperate pins, of course).
When using the IDF drivers, you'll notice that they need you to specify upon setup which pins you want them to use.

Sophi9999
Posts: 3
Joined: Mon Aug 19, 2024 5:22 pm

Re: ESP32-C3-MINI-1-H4 SPI/ I2C

Postby Sophi9999 » Tue Aug 20, 2024 6:30 pm

Many thanks!

I'm planing on using the Arduino framework, looks like you can change pin numbers for I2C and SPI there too.

Who is online

Users browsing this forum: Baidu [Spider] and 152 guests