Skip to content

bitbangio.I2C doesn't work on imxrt1010-evk #4568

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
jepler opened this issue Apr 6, 2021 · 1 comment
Closed

bitbangio.I2C doesn't work on imxrt1010-evk #4568

jepler opened this issue Apr 6, 2021 · 1 comment
Assignees
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Milestone

Comments

@jepler
Copy link

jepler commented Apr 6, 2021

I have the evk and attached a BNO055 sensor to it, wondering whether bitbangio was a workaround for #3763 (it's not)

Devices should be [26,40] but software bitbangio says ...

>>> i2c = bitbangio.I2C(sda=board.SDA, scl=board.SCL)
>>> i2c.try_lock()
True
>>> i2c.scan()
[26, 40, 41, 42, 43, 44, 45]
>>> i2c.scan()
[26, 40, 41]
>>> i2c.scan()
[26, 40, 41]
>>> i2c.scan()
[26, 40, 41]

Underlying cause could be similar to #3845 but not sure yet.

@jepler jepler added bug mimxrt10xx iMX RT based boards such as Teensy 4.x labels Apr 6, 2021
@jepler jepler added this to the 7.0.0 milestone Apr 6, 2021
@jepler jepler modified the milestones: 7.0.0, Long term Jul 15, 2021
@tannewt tannewt self-assigned this Feb 15, 2023
@tannewt tannewt modified the milestones: Long term, 9.0.0 Feb 15, 2023
@tannewt tannewt removed their assignment Feb 16, 2023
@dhalbert dhalbert self-assigned this Feb 24, 2023
@dhalbert dhalbert modified the milestones: 9.0.0, 8.x.x Apr 7, 2023
@dhalbert
Copy link
Collaborator

dhalbert commented Apr 7, 2023

Re-tested on a Metro M7 1011, with an SHT40 and a BNO055. Seems to work now. Scan works. To get the BNO055 to work, I had to length the clock-stretching timeout when creating the bitbangio.I2C() object. So something fixed this, maybe #5866.

@dhalbert dhalbert closed this as completed Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Projects
None yet
Development

No branches or pull requests

3 participants