aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-10-12 10:38:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-12-12 10:07:53 -0500
commit65a49d17ddf8c89680087e783f493f3f92fa26b5 (patch)
treef34dd778b699375706f3c36ca611967c62da53cc /klippy/extras/display
parent2d6b44152a73a21186470a7840d91a6c8827556e (diff)
downloadkutter-65a49d17ddf8c89680087e783f493f3f92fa26b5.tar.gz
kutter-65a49d17ddf8c89680087e783f493f3f92fa26b5.tar.xz
kutter-65a49d17ddf8c89680087e783f493f3f92fa26b5.zip
hd44780: Make the 4-bit init sequence more robust
The previous init sequence relied on the display ignoring commands if they are sent faster than 40us. Some displays may not have this limit. Rework the init to make it more robust to command transmission times. The new init should still transition the display into 4-bit mode even if the display processes commands faster than 40us. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r--klippy/extras/display/hd44780.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/display/hd44780.py b/klippy/extras/display/hd44780.py
index 3b56eb6e..5601b567 100644
--- a/klippy/extras/display/hd44780.py
+++ b/klippy/extras/display/hd44780.py
@@ -89,7 +89,7 @@ class HD44780:
curtime = self.printer.get_reactor().monotonic()
print_time = self.mcu.estimated_print_time(curtime)
# Program 4bit / 2-line mode and then issue 0x02 "Home" command
- init = [[0x33], [0x33], [0x33, 0x22, 0x28, 0x02]]
+ init = [[0x33], [0x33], [0x32], [0x28, 0x28, 0x02]]
# Reset (set positive direction ; enable display and hide cursor)
init.append([0x06, 0x0c])
for i, cmds in enumerate(init):