question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Garbage Display

See original GitHub issue

WHen 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:closed
  • Created 6 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
albedozerocommented, Feb 13, 2019

The master branch fixes the problem for me, when I use compat_mode=True. Works in python2 and python3.

1reaction
dbrgncommented, Feb 13, 2019

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 the CharLCD class in order to enable this compatibility mode.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found