HiLetgo 2004 20X4 LCD Display
-Removed the old LCD setup from mycodo in setup/LCD
-Added a new function for generic LCD 20x4 (i2C)
-Configured the new function with the same I2C (0x27) and I2C bus (1) that was previously used. I2Cdetect shows the device at 0x27.
-Added the same 4 lines that were previously setup
- restarted mycodo. A few minutes later the following error is written to the log file:
2021-07-28 13:12:39,305 - ERROR - mycodo.controllers.controller_function_5897a2e1 - Exception while running loop(): [Errno 121] Remote I/O error
Traceback (most recent call last):
File “/var/mycodo-root/mycodo/controllers/controller_function.py”, line 71, in loop
File “/home/pi/Mycodo/mycodo/functions/display_generic_lcd_20x4_i2c.py”, line 434, in loop
lines_display, lines_display, lines_display, lines_display)
File “/var/mycodo-root/mycodo/devices/lcd_generic.py”, line 119, in lcd_write_lines
File “/var/mycodo-root/mycodo/devices/lcd_generic.py”, line 113, in lcd_string_write
File “/var/mycodo-root/mycodo/devices/lcd_generic.py”, line 97, in lcd_byte
File “/var/mycodo-root/mycodo/devices/lcd_generic.py”, line 102, in lcd_toggle_enable
self.bus.write_byte(self.I2C_ADDR, (bits | self.ENABLE))
File “/var/mycodo-root/env/lib/python3.7/site-packages/smbus2/smbus2.py”, line 414, in write_byte
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
The function 5897a2e1 is the ID of this new function. What is interesting is this same LCD setup is working on our second system.
What should I do to correct?