From cf1e1970a510866dc049ab9507a2f5e98faa80ee Mon Sep 17 00:00:00 2001 From: Benjamin Tayehanpour Date: Thu, 1 Oct 2026 19:57:57 +0000 Subject: [PATCH] stuff --- display.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display.py b/display.py index dbc70a5..945d58b 100644 --- a/display.py +++ b/display.py @@ -11,13 +11,13 @@ class display: async def redraw(self, row = None): if row == None: for row, line in enumerate(self.contents): - await self.device.async_message(line, row) + await self.device.async_message(line, row + 1) else: - await self.device.async_message(self.contents[row], row) + await self.device.async_message(self.contents[row - 1], row) async def read(self, row): return self.contents[row] async def write(self, row, data, offset = 0): - self.contents[row] = f'{self.contents[row][:offset]}{data}{self.contents[row][offset+len(data):]}' + self.contents[row - 1] = f'{self.contents[row][:offset]}{data}{self.contents[row][offset+len(data):]}' await self.redraw(row) \ No newline at end of file