18 lines
No EOL
440 B
Python
18 lines
No EOL
440 B
Python
from LCD import LCD
|
|
|
|
class display:
|
|
def __init__(self, width=16, height=4, i2c_addr=0x27):
|
|
self.width = width
|
|
self.height = height
|
|
self.device = LCD(2, i2c_addr, True)
|
|
self.contents = [""] * self.height
|
|
|
|
def redraw(self):
|
|
for row, line in enumerate(self.contents):
|
|
self.device.message(row + 1, line)
|
|
|
|
def read(self):
|
|
pass
|
|
|
|
def write(self):
|
|
pass |