Skip to content

Issues with Circuitpython 9.2 and I2CDevice #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rjauquet opened this issue Nov 14, 2024 · 0 comments · Fixed by #55
Closed

Issues with Circuitpython 9.2 and I2CDevice #54

rjauquet opened this issue Nov 14, 2024 · 0 comments · Fixed by #55

Comments

@rjauquet
Copy link
Contributor

Circuitpython 9.2 adds a probe method to check single i2c device addresses, which is causing this library to fail when initializing I2CDevice objects from adafruit_bus_device.

import adafruit_tca9548a

i2c = board.I2C()
hub = adafruit_tca9548a.PCA9546A(i2c)
channel = hub[0]
device = I2CDevice(channel, 0x42)
>> 'TCA9548A_Channel' object has no attribute 'probe'

I believe the 9.2 changelog references this change.
https://github.com/adafruit/circuitpython/releases

Apologies if this is not quite the responsibility of this package. We've been using the TCA9548A_Channel as a drop in for i2c so I thought perhaps we just need to update this package with a probe method as a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant