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)