From 576cc16a16da7e9dc3dbc55afe50f3b6a9231972 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Thu, 12 Dec 2019 22:29:00 -0500 Subject: [PATCH] Revert "added delays to clear" This reverts commit 06525ab3205895c9ab86ea03775822c008788201. --- .../python/lib/waveshare_epd/epd2in7.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 43c516d..d9c1a9e 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -536,16 +536,12 @@ class EPD: def Clear(self, color): self.send_command(0x10) - epdconfig.delay_ms(2) for i in range(0, int(self.width * self.height / 8)): - self.send_data(color) - epdconfig.delay_ms(2) + self.send_data(0xFF) self.send_command(0x13) - epdconfig.delay_ms(2) for i in range(0, int(self.width * self.height / 8)): - self.send_data(color) - epdconfig.delay_ms(2) - self.send_command(0x12) + self.send_data(0xFF) + self.send_command(0x12) self.ReadBusy() def sleep(self):