From 044639a6d4aecce1cdb1c5a5d65b4ef8d42ffa20 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 20 Jan 2024 10:23:50 +0100 Subject: [PATCH] Fix 2.7V2 display --- pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py b/pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py index f0809f06..1eaa8a3f 100644 --- a/pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py +++ b/pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py @@ -446,7 +446,7 @@ class EPD: def display_4Gray(self, image): self.send_command(0x24) - for i in range(0, 48000): # 5808*4 46464 + for i in range(0, 5808): # 5808*4 46464 temp3 = 0 for j in range(0, 2): temp1 = image[i * 2 + j] @@ -478,7 +478,7 @@ class EPD: self.send_data(temp3) self.send_command(0x26) - for i in range(0, 48000): # 5808*4 46464 + for i in range(0, 5808): # 5808*4 46464 temp3 = 0 for j in range(0, 2): temp1 = image[i * 2 + j]