the-raspberry-pi-guy / lcd

This repository contains all of the code for interfacing with a 16x2 Character I2C LCD Display. This accompanies my YouTube tutorial here: https://www.youtube.com/watch?v=fR5XhHYzUK0
188 stars 107 forks source link

Issue while running demo_clock.py #28

Closed rinkucool007 closed 3 years ago

rinkucool007 commented 3 years ago

pi@raspberrypi:~/lcd $ python demo_clock.py Traceback (most recent call last): File "demo_clock.py", line 14, in display = drivers.Lcd() File "/home/pi/lcd/drivers/i2c_dev.py", line 103, in init self.lcd_write(0x03) File "/home/pi/lcd/drivers/i2c_dev.py", line 126, in lcd_write self.lcd_write_four_bits(mode | (cmd & 0xF0)) File "/home/pi/lcd/drivers/i2c_dev.py", line 121, in lcd_write_four_bits self.lcd.write_cmd(data | LCD_BACKLIGHT) File "/home/pi/lcd/drivers/i2c_dev.py", line 74, in write_cmd self.bus.write_byte(self.addr, cmd) IOError: [Errno 121] Remote I/O error

cgomesu commented 3 years ago

@rinkucool007 , try patching the changes in #27 and run the demo_clock.py script again. If the error continues, double check your connections.

When replying to this message, paste the output of the following commands:

python --version
i2cdetect -y 1
hostnamectl

and if possible, let us know about the specifics of your LCD module.

the-raspberry-pi-guy commented 3 years ago

Hi @rinkucool007, did @cgomesu's suggestions help? This issue has gone stale since then so I will close it for now, but if you have any further issues then please feel free to make another.

Thanks again for your assistance @cgomesu