From 611a3e7fb541cac15ab0829a782591a1db0caa7d Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 15 Feb 2024 20:51:55 +0100 Subject: [PATCH] fix for waveshare3in7.py --- pwnagotchi/ui/hw/waveshare3in7.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/ui/hw/waveshare3in7.py b/pwnagotchi/ui/hw/waveshare3in7.py index eb2017ac..32523c16 100644 --- a/pwnagotchi/ui/hw/waveshare3in7.py +++ b/pwnagotchi/ui/hw/waveshare3in7.py @@ -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)