Getting Garbage Display
See original GitHub issueWHen doing several updates in a row, the output on the LCD becomes corrupted. Garbage characters and the only way out is a full reset. This is the relevant code:
lcd.clear()
lcd.cursor_pos = (0, lineStartPos(lcdLine1))
lcd.write_string(str(lcdLine1))
lcd.cursor_pos = (1, lineStartPos(lcdLine2))
lcd.write_string(str(lcdLine2))
lcd.cursor_pos = (2, lineStartPos(lcdLine3))
lcd.write_string(str(lcdLine3))
lcd.cursor_pos = (3, 0)
lcd.write_string("Target:")
lcd.write_string(str(targetTemp))
lcd.write_string(chr(223) + " ")
lcd.write_string("Temp:")
lcd.write_string(str(currentTemp))
lcd.write_string(chr(223))
lineStartPos is a function to determine center point of the text. I can update the same content perhaps 6 times in a row but after that it becomes corrupt. Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
SOLVED: Garbage screen after 5-10 minutes - PC Desktop
Garbage screen after 5-10 minutes. I have 8 years old setup. Intel E5700 3.0 GHz dual core. 4 gb ram. Gigabyte g41 series...
Read more >Computer Showing Garbage Display On The Screen
I have visited customers place that stating above problem about garbage & vague characters display on the screen. My first suspect is Monitor. ......
Read more >Question - GPU garbage display but not overheating
Cause I researched that one of the most common issue of a garbage display is an overheating GPU but my GPU isn't overheating....
Read more >Stop Error Screen Displays Garbage
Also, I usually only get stop screens for three reasons: I manually generate a memory dump (MANUALLY_INITIATED_CRASH), I try to dial a phone ......
Read more >Random Garbage Display? - Troubleshooting
What could have caused the garbage display and why does my monitor seem ... If you're getting a different but damaged video it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The master branch fixes the problem for me, when I use
compat_mode=True
. Works in python2 and python3.The pull request #91 was merged to master. It adds a compatibility mode with longer wait times. This might help when an LCD requires timings that are out of spec for the HD44780, or if the clock isn’t correct.
It would be great if one of the affected people could test the current master branch of this library, to see if it fixes the issue. You also need to pass in the
compat_mode=True
parameter when initializing theCharLCD
class in order to enable this compatibility mode.