Update epd2in7.py

This commit is contained in:
Brian Y 2019-12-15 23:09:10 -05:00
commit 048b9ccd7c

View file

@ -616,7 +616,7 @@ class EPD:
# pass # pass
def Clear(self, color): 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) self.send_command(DATA_START_TRANSMISSION_1)
# for i in range(0, int(self.width * self.height / 8)): # for i in range(0, int(self.width * self.height / 8)):
# self.send_data(0xFF) # self.send_data(0xFF)