MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / lcd_print

Method lcd_print

mpython/lib/lcd2004.py:51–62  ·  view source on GitHub ↗
(self, string, line=0, col=0)

Source from the content-addressed store, hash-verified

49 self.lcd_write(0xD4 + col)
50
51 def lcd_print(self, string, line=0, col=0):
52 self.set_line(line, col)
53 i = 1
54 for char in string:
55 if (i > Width) & (line < 4):
56 line = line + 1
57 self.set_line(line, 0)
58 i = 1
59 if (i > Width) & (line == 4):
60 break
61 self.lcd_write(ord(char), RS)
62 i = i + 1
63
64 def lcd_off(self):
65 self.lcd_write(0x08 | 0x00)

Callers 3

lcdPrintFunction · 0.80
lcdScrollFunction · 0.80
displayTempFunction · 0.80

Calls 2

set_lineMethod · 0.95
lcd_writeMethod · 0.95

Tested by

no test coverage detected