I have a Circuit Playground Express (CPX) mounted on a Crickit. I want to control two air pumps using the motor output on the Crickit, but also connect two Adafruit SCD41 sensors using I2C.
When I connect the SCD41 to the CPX without the Crickit, it works. When I do the same with the CPX mounted on the Crickit, it does not work.
I assume this has something to do with the Crickit "occupying" the I2C-bus.
I also have a TCA9548A I2C multiplexer, but I'm not sure if this will help me, or how to use it. Should I connect the multiplexer to the CPX, and have the Crickit and the two sensors connected as multiplexed devices?
How to proceed?
I assume this has something to do with the Crickit "occupying" the I2C-bus.
... do not assume anything, make certaintca = adafruit_tca9548a.TCA9548A(i2c)
followed bytca[0].try_lock()
, but this causes the error OSError: [Errno 5] Input/output error