(self, line, col=0)
| 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) |