tinypico / tinypico-hardware

Hardware design files for TinyPICO and Shields
Other
247 stars 59 forks source link

Other I2C pin than IO21 and IO22 #18

Closed bilaljo closed 3 years ago

bilaljo commented 3 years ago

It is possible to use other pin than IO21 and IO22 for I2C? They are marked as I2C pins on the tinpy pico pinout which makes me quite unsure.

UnexpectedMaker commented 3 years ago

You can initialise I2C with any pins, but 21,22 will give you hardware I2C, where other pins may be software I2C.

bilaljo commented 3 years ago

Thank you for your answer. Is that a tiny pico specific feature? Since I found this post on the esp32 forum:

"Yes, the digital portion has two hardware I2C modules. You don't see the pins for it in the pinout because they're conencted to the GPIO mux and you can connect them to any of the (output-capable) GPIOs."

https://esp32.com/viewtopic.php?t=215

UnexpectedMaker commented 3 years ago

TinyPICO is an ESP32 and can do whatever an ESP32 can do. Some pins will give you hardware, some software I2C depending on which you use.

The ESP32-PICO-D4 datasheet is the best place to look.