Softi2c for circuitpython?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bastbeat
 
Posts: 15
Joined: Thu Feb 17, 2022 5:40 am

Softi2c for circuitpython?

Post by bastbeat »

Hi,

I'm trying to connect three identical tlv493d --i2c capable-- sensors to my Pico running circuitpython.
The problem is that the Pico has only two i2c interfaces. Is there a way to create an additional i2c interface?
I know there exists some softi2c alternatives for micropython and Arduino, but I couldn't find anything for circuitpython. Some ideas?

Thank you in advance

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Softi2c for circuitpython?

Post by adafruit_support_carter »

Best option is to use an I2C muxer:
https://learn.adafruit.com/working-with ... -conflicts

Using additional I2C ports for dealing with address conflicts is not recommended.

User avatar
danhalbert
 
Posts: 4653
Joined: Tue Aug 08, 2017 12:37 pm

Re: Softi2c for circuitpython?

Post by danhalbert »

You can use bitbangio.I2C if you want, which is a "soft" I2C implementation. The hardware I2C implementations often work out better for idiosyncratic I2C devices.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”