mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fix for waveshare3in7.py
This commit is contained in:
@ -36,10 +36,11 @@ class Waveshare3in7(DisplayImpl):
|
||||
self._display = EPD()
|
||||
self._display.init(0)
|
||||
self._display.Clear(0)
|
||||
self._display.init(1) # 1Gray mode
|
||||
|
||||
def render(self, canvas):
|
||||
buf = self._display.getbuffer(canvas)
|
||||
self._display.display(buf)
|
||||
self._display.display_1Gray(buf)
|
||||
|
||||
def clear(self):
|
||||
self._display.Clear(0)
|
||||
|
Reference in New Issue
Block a user