adafruit / Adafruit_CircuitPython_TCA9548A

CircuitPython driver for the TCA9548A I2C Multiplexer.
MIT License
26 stars 15 forks source link

Not working with MLX90393 #19

Closed caternuson closed 4 years ago

caternuson commented 4 years ago

Re this thread: https://forums.adafruit.com/viewtopic.php?f=60&t=165549

Issue recreated.

Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board, busio, adafruit_mlx90393, adafruit_tca9548a
>>> tca = adafruit_tca9548a.TCA9548A(board.I2C())
>>> mlx = adafruit_mlx90393.MLX90393(tca[7])

And work around verified:

Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board, busio, adafruit_mlx90393
>>> i2c = board.I2C()
>>> i2c.try_lock()
True
>>> i2c.writeto(0x70, b'\x80')
>>> i2c.unlock()
>>> mlx = adafruit_mlx90393.MLX90393(i2c)
>>> mlx.magnetic
(-301.8, 38.7, 190.212)
>>> 

setup

caternuson commented 4 years ago

Closing due to lack of response (in thread above). Assuming fixed. Can reopen if not.