(self, string, line=0, col=0)
| 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) |
no test coverage detected