Update epd2in7.py
This commit is contained in:
parent
ffcc222136
commit
048b9ccd7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue