python-liquidcrystal_i2c icon indicating copy to clipboard operation
python-liquidcrystal_i2c copied to clipboard

IOError: [Errno 5] Input/output error

Open LucasJWilliams opened this issue 5 years ago • 2 comments

Traceback (most recent call last): File "lcd2004.py", line 13, in lcd = liquidcrystal_i2c.LiquidCrystal_I2C(0x3f, 1, numlines=4) File "build/bdist.linux-armv7l/egg/liquidcrystal_i2c/liquidcrystal_i2c.py", line 70, in init File "build/bdist.linux-armv7l/egg/liquidcrystal_i2c/liquidcrystal_i2c.py", line 243, in _expanderWrite IOError: [Errno 5] Input/output error

Hi I have this error pop up when I start my program. It was working fine before but I then unplugged all my pins to use them for another project. I plugged it back in and I have this error, I have triple checked that they are all on the correct pins.

Any ideas what is causing this?

LucasJWilliams avatar Jul 07 '20 18:07 LucasJWilliams

Hi Lucas,

no clue, sorry. I currently do not have the hardware here, so I can't even test. Did you setup a new OS? Which Raspi are you using? Input/Output error might be related to access right, like described here: https://github.com/pl31/python-liquidcrystal_i2c#access-rights

Cheers Patrick

pl31 avatar Jul 08 '20 06:07 pl31

Hi Patrick,

Thanks for your help I ended up moving my script to another file and it worked fine. The error is still the same in the original location which makes no sense because it was working fine a few days ago. I haven't changed the OS or updated/upgraded the Pi, and I believe it is a RaspPi 3 B+.

Lucas

LucasJWilliams avatar Jul 08 '20 17:07 LucasJWilliams