fix for waveshare3in7.py

This commit is contained in:
Jeroen Oudshoorn
2024-02-15 20:51:55 +01:00
parent 599c6211e4
commit 611a3e7fb5

View File

@ -36,10 +36,11 @@ class Waveshare3in7(DisplayImpl):
self._display = EPD() self._display = EPD()
self._display.init(0) self._display.init(0)
self._display.Clear(0) self._display.Clear(0)
self._display.init(1) # 1Gray mode
def render(self, canvas): def render(self, canvas):
buf = self._display.getbuffer(canvas) buf = self._display.getbuffer(canvas)
self._display.display(buf) self._display.display_1Gray(buf)
def clear(self): def clear(self):
self._display.Clear(0) self._display.Clear(0)