This commit is contained in:
Benjamin Tayehanpour 2026-09-26 09:46:51 +00:00
parent 45378d4e91
commit c4f60a9cf8
4 changed files with 154 additions and 0 deletions

18
display.py Normal file
View file

@ -0,0 +1,18 @@
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