Open Jibun-no-Kage opened 3 weeks ago
ETIMEDOUT
happens when the device isn't found on the bus, or doesn't respond in time.
Does .scan()
always show [32]
or sometimes []
?
Does every pin read fail, or intermittently fails?
There's also a .check()
method for scanning the bus and raising if not found.
I'd check the cables, pull-up resistors. Try adding a 2nd device on the I2C bus.
Using MicroPython 1.24. Copied the pcf8574.py file into my ESP32 module, happen to be using thonny IDE. Run the following code...
Just trying to read pin 2 for example. And I get the following error...
I know the device is on the i2c bus...
So not sure what I am doing wrong?