From 913b1a6e1dc32b15add1e07ae3683ab03249444a Mon Sep 17 00:00:00 2001 From: jayofelony Date: Mon, 4 Mar 2024 12:55:12 +0100 Subject: [PATCH] Update 2.7 inch display --- pwnagotchi/ui/hw/waveshare2in7_V2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pwnagotchi/ui/hw/waveshare2in7_V2.py b/pwnagotchi/ui/hw/waveshare2in7_V2.py index 42272fb6..e8d4cfcd 100644 --- a/pwnagotchi/ui/hw/waveshare2in7_V2.py +++ b/pwnagotchi/ui/hw/waveshare2in7_V2.py @@ -35,13 +35,11 @@ class Waveshare27inchV2(DisplayImpl): from pwnagotchi.ui.hw.libs.waveshare.v2in7_v2.epd2in7_V2 import EPD self._display = EPD() self._display.init() - # this must have changed by waveshare - # remove the 0xFF(Clear(0xFF)) other wise it errors. can't pass oxff and self self._display.Clear() def render(self, canvas): buf = self._display.getbuffer(canvas) - self._display.display_Partial(buf, 0, 0, 176, 264) + self._display.display_Fast(buf) def clear(self): # This line also removes the 0xFF