forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Similar to this issue:
#3894
Running: Adafruit CircuitPython 6.2.0-beta.2-14-g766e79ad3 on 2021-02-12
Sensor: mlx90614
I have this code running:
i2c = io.I2C(scl=board.GP5, sda=board.GP4, frequency=100000)
time.sleep(1.0)
# Lock the I2C device before we try to scan
while not i2c.try_lock():
pass
# Print the addresses found once
print("I2C addresses found:", [hex(device_address) for device_address in i2c.scan()])
# Unlock I2C now that we're done scanning.
i2c.unlock()
just prints
[ ]
Although, the sensor is working fine with this added
mlx = adafruit_mlx90614.MLX90614(i2c)
while True:
# temperature results in celsius
print("Ambient Temperature: ", mlx.ambient_temperature)
print("Object Temperature: ", mlx.object_temperature)
time.sleep(1.0)
Had it running on rp2-pico-20210209-unstable-v1.14-11-gc7aaee2b2.uf2: this prints the address, but the library for the sensor doesn't work (OSError: 5... for whatever unknown reason...).
