Skip to content

Sensor init fails when using an I2C muxer #37

@caternuson

Description

@caternuson

Re this thread:
https://forums.adafruit.com/viewtopic.php?t=209506

Adafruit CircuitPython 8.2.6 on 2023-09-12; Adafruit QT Py RP2040 with rp2040
>>> import board
>>> import adafruit_mlx90393
>>> import adafruit_tca9548a
>>> i2c = board.STEMMA_I2C()
>>> mux = adafruit_tca9548a.PCA9546A(i2c)
>>> SENSOR = adafruit_mlx90393.MLX90393(mux[2], address=0x0c)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_mlx90393.py", line 226, in __init__
  File "adafruit_mlx90393.py", line 318, in resolution_x
  File "adafruit_mlx90393.py", line 351, in _set_resolution
  File "adafruit_mlx90393.py", line 417, in read_reg
  File "adafruit_tca9548a.py", line 74, in readfrom_into
OSError: [Errno 19] No such device
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions