micropython-mlx90614 icon indicating copy to clipboard operation
micropython-mlx90614 copied to clipboard

OSError: [Errno 5] EIO

Open Flex112 opened this issue 4 years ago • 0 comments

Maixpy IDE Corgidude board

Code

import mlx90614
from machine import I2C
from fpioa_manager import fm

fm.register(14, fm.fpioa.SCCB_SDA)
fm.register(15, fm.fpioa.SCCB_SCLK)

i2c = I2C(I2C.I2C0, freq=100000, scl=15, sda=14)

sensor = mlx90614.MLX90614(i2c)
print(sensor.read_ambient_temp())
print(sensor.read_object_temp())
if sensor.dual_zone:
    print(sensor.object2_temp)

OUTPUT

Traceback (most recent call last):
  File "<stdin>", line 10, in <module>
  File "mlx90614.py", line 37, in __init__
OSError: [Errno 5] EIO
MicroPython v0.5.0-47-ge29a95c42-dirty on 2020-07-24; Sipeed_M1 with kendryte-k210
Type "help()" for more information.

Flex112 avatar Apr 13 '21 17:04 Flex112