From cf1fcf7bb72469c623770526d4c6e1339ec9c39e Mon Sep 17 00:00:00 2001 From: Brian Y Date: Thu, 12 Dec 2019 22:38:43 -0500 Subject: [PATCH] Update epd2in7.py --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index d9c1a9e..a4e37e9 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -535,13 +535,14 @@ class EPD: # pass def Clear(self, color): - self.send_command(0x10) + self.send_command(DATA_START_TRANSMISSION_1) for i in range(0, int(self.width * self.height / 8)): self.send_data(0xFF) - self.send_command(0x13) + self.send_command(DATA_START_TRANSMISSION_2) for i in range(0, int(self.width * self.height / 8)): self.send_data(0xFF) - self.send_command(0x12) + self.set_lut() + self.send_command(DISPLAY_REFRESH) self.ReadBusy() def sleep(self):