Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 5] EIO #5

Open
Flex112 opened this issue Apr 13, 2021 · 0 comments
Open

OSError: [Errno 5] EIO #5

Flex112 opened this issue Apr 13, 2021 · 0 comments

Comments

@Flex112
Copy link

Flex112 commented Apr 13, 2021

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant