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
  • Loading branch information
UnaKarlsen committed Nov 24, 2023
1 parent 70fdfaa commit 14a93cb
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 14a93cb

Please sign in to comment.