diff options
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/display/hd44780.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/klippy/extras/display/hd44780.py b/klippy/extras/display/hd44780.py index 5601b567..7d7b5c6b 100644 --- a/klippy/extras/display/hd44780.py +++ b/klippy/extras/display/hd44780.py @@ -21,6 +21,8 @@ class HD44780: ppins = self.printer.lookup_object('pins') pins = [ppins.lookup_pin(config.get(name + '_pin')) for name in ['rs', 'e', 'd4', 'd5', 'd6', 'd7']] + self.hd44780_protocol_init = config.getboolean('hd44780_protocol_init', + True) self.line_length = config.getchoice('line_length', LINE_LENGTH_OPTIONS, LINE_LENGTH_DEFAULT) mcu = None @@ -89,7 +91,10 @@ 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], [0x32], [0x28, 0x28, 0x02]] + if self.hd44780_protocol_init: + init = [[0x33], [0x33], [0x32], [0x28, 0x28, 0x02]] + else: + init = [[0x02]] # Reset (set positive direction ; enable display and hide cursor) init.append([0x06, 0x0c]) for i, cmds in enumerate(init): |