From 048b9ccd7c8623ffdf5ae92fc31ec8d8bee93ecc Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sun, 15 Dec 2019 23:09:10 -0500 Subject: [PATCH] Update epd2in7.py --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 3b60107..3782f67 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -616,7 +616,7 @@ class EPD: # pass def Clear(self, color): - data = [color] * self.width * self.height / 8 + data = [color] * int(self.width * self.height / 8) self.send_command(DATA_START_TRANSMISSION_1) # for i in range(0, int(self.width * self.height / 8)): # self.send_data(0xFF)