decoder
This commit is contained in:
parent
45378d4e91
commit
c4f60a9cf8
4 changed files with 154 additions and 0 deletions
18
display.py
Normal file
18
display.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue