Fix waveshare1in54.py

This commit is contained in:
jayofelony
2024-02-27 10:21:29 +01:00
parent 8a0d482fe0
commit 9a1a264a9f
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,8 @@ class Waveshare154(DisplayImpl):
self._display = EPD() self._display = EPD()
self._display.init(0) self._display.init(0)
self._display.Clear() self._display.Clear()
self._display.init(1)
self._display.Clear()
def render(self, canvas): def render(self, canvas):
buf = self._display.getbuffer(canvas) buf = self._display.getbuffer(canvas)

View File

@ -38,7 +38,6 @@ class Waveshare154V2(DisplayImpl):
self._display = EPD() self._display = EPD()
self._display.init(0) self._display.init(0)
self.clear() self.clear()
self._display = EPD()
self._display.init(1) self._display.init(1)
self.clear() self.clear()
except Exception as e: except Exception as e: