Skip to content

Commit

Permalink
Updated to the way Clear works on the Waveshare 2.7 Inch v2
Browse files Browse the repository at this point in the history
Signed-off-by: Una Karlsen <[email protected]>
  • Loading branch information
UnaKarlsen committed Nov 25, 2023
1 parent eca354c commit ef72867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnagotchi/ui/hw/waveshare27inch_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def initialize(self):
from pwnagotchi.ui.hw.libs.waveshare.v27inch_v2.epd2in7_V2 import EPD
self._display = EPD()
self._display.init()
self._display.Clear(0xFF)
self._display.Clear()

def render(self, canvas):
buf = self._display.getbuffer(canvas)
self._display.display(buf)

def clear(self):
self._display.Clear(0xff)
self._display.Clear()

0 comments on commit ef72867

Please sign in to comment.