From 9a1a264a9f82a20753cb2b0a13f33fafc78e3997 Mon Sep 17 00:00:00 2001 From: jayofelony Date: Tue, 27 Feb 2024 10:21:29 +0100 Subject: [PATCH] Fix waveshare1in54.py --- pwnagotchi/ui/hw/waveshare1in54.py | 2 ++ pwnagotchi/ui/hw/waveshare1in54_V2.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/ui/hw/waveshare1in54.py b/pwnagotchi/ui/hw/waveshare1in54.py index e28a777e..56b1891d 100644 --- a/pwnagotchi/ui/hw/waveshare1in54.py +++ b/pwnagotchi/ui/hw/waveshare1in54.py @@ -36,6 +36,8 @@ class Waveshare154(DisplayImpl): self._display = EPD() self._display.init(0) self._display.Clear() + self._display.init(1) + self._display.Clear() def render(self, canvas): buf = self._display.getbuffer(canvas) diff --git a/pwnagotchi/ui/hw/waveshare1in54_V2.py b/pwnagotchi/ui/hw/waveshare1in54_V2.py index ddf8536b..02cd85a3 100644 --- a/pwnagotchi/ui/hw/waveshare1in54_V2.py +++ b/pwnagotchi/ui/hw/waveshare1in54_V2.py @@ -38,7 +38,6 @@ class Waveshare154V2(DisplayImpl): self._display = EPD() self._display.init(0) self.clear() - self._display = EPD() self._display.init(1) self.clear() except Exception as e: