This commit is contained in:
Benjamin Tayehanpour 2026-09-26 21:28:01 +00:00
parent 7cb5053045
commit 8df4d810cc

View file

@ -11,9 +11,9 @@ class display:
async def redraw(self, row = None): async def redraw(self, row = None):
if row == None: if row == None:
for row, line in enumerate(self.contents): for row, line in enumerate(self.contents):
await self.device.async_message(row + 1, line) await self.device.async_message(line, row + 1)
else: else:
await self.device.async_message(row + 1, self.contents[row]) await self.device.async_message(self.contents[row], row + 1)
async def read(self, row): async def read(self, row):
return self.contents[row] return self.contents[row]