mcauser / micropython-mlx90614

MicroPython driver for the MLX90614 IR temperature sensor
MIT License
33 stars 14 forks source link

OSError: [Errno 5] EIO #5

Open Flex112 opened 3 years ago

Flex112 commented 3 years ago

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.