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

Method set_line

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

Source from the content-addressed store, hash-verified

39 self.lcd_write_four_bits(RS | ((cmd << 4) & 0xF0))
40
41 def set_line(self, line, col=0):
42 if line == 1:
43 self.lcd_write(0x80 + col)
44 if line == 2:
45 self.lcd_write(0xC0 + col)
46 if line == 3:
47 self.lcd_write(0x94 + col)
48 if line == 4:
49 self.lcd_write(0xD4 + col)
50
51 def lcd_print(self, string, line=0, col=0):
52 self.set_line(line, col)

Callers 1

lcd_printMethod · 0.95

Calls 1

lcd_writeMethod · 0.95

Tested by

no test coverage detected