Just bought my Pico kit yesterday, and loving it.
I'm playing with the codes and toys that came with it, and am struggling with the LC1602 display with a serial bus at the back.
I'm getting the Errno 5 EIO error and have no idea what it is, despite reading some of the answers here!
I'm going through the codes supplied with the kit line by line, and it hits the error at this stage:
Code: Select all
from machine import Pin, I2C, ADC
from time import sleep, sleep_ms
from machine_i2c_lcd import I2cLcd
import utime
i2c = I2C(0, scl=Pin(9), sda=Pin(8), freq=400000)
addr = i2c.scan()[0]
# print(hex(addr[0]))
lcd = I2cLcd(i2c, addr, 2, 16)
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 12, in <module>
File "machine_i2c_lcd.py", line 25, in __init__
OSError: [Errno 5] EIO
https://github.com/geeekpi/picokit/blob ... i2c_lcd.py
I've even tried a similar example from TomsHardware:
https://www.tomshardware.com/how-to/lcd ... ry-pi-pico
But same issue.
Hardware problem? Or have I missed something?
Thanks.
Adrian