Python Forum
Weird refresh rate with i2c lcd
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird refresh rate with i2c lcd
#10
I figured it out.

it was actually all due to this annoying little code
display = lcddriver.lcd()
whenever an instance of the lcd() class is made, the __init__() function runs, and resets the screen. so anyone else having this problem, simply removing the line from the while loop will fix the problem

in mycoses, i couldn't do that, so i changed the __init__ method to a new one called start(), and wrote code that only runs it once.
nilamo likes this post
Reply


Messages In This Thread
Weird refresh rate with i2c lcd - by JarredAwesome - Sep-09-2020, 02:26 AM
RE: Weird refresh rate with i2c lcd - by nilamo - Sep-09-2020, 02:36 AM
RE: Weird refresh rate with i2c lcd - by metulburr - Sep-10-2020, 10:39 AM
RE: Weird refresh rate with i2c lcd - by nilamo - Sep-13-2020, 06:55 PM
RE: Weird refresh rate with i2c lcd - by JarredAwesome - Sep-18-2020, 04:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020