add missing cast to int
avoid `TypeError: 'float' object cannot be interpreted as an integer`
This commit is contained in:
parent
751a9fb93f
commit
1a82aa1bc5
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ class EPD:
|
||||||
|
|
||||||
self.send_command(0x26)
|
self.send_command(0x26)
|
||||||
for j in range(0, self.height):
|
for j in range(0, self.height):
|
||||||
for i in range(0, self.width / 8):
|
for i in range(0, int(self.width / 8)):
|
||||||
self.send_data(image[i + j * int(self.width / 8)])
|
self.send_data(image[i + j * int(self.width / 8)])
|
||||||
|
|
||||||
self.TurnOnDisplayPart()
|
self.TurnOnDisplayPart()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue