I have a Feather Huzzah esp8266 connected to a cqrobot mcp23017 board. I am attempting to read/write the memory from the mcp, however it returns an error.
Code: Select all
from machine import Pin, I2C i2c = I2C(scl=Pin(5), sda=Pin(4)) i2c.scan() # output: #  i2c.readfrom_mem(37,0x00,1) # Error # Traceback (most recent call last): # File "<stdin>", line 1, in <module> # OSError: [Errno 19] ENODEV
It also fails when I attempt a writeto_mem operation. Any ideas what is causing this?