Merge pull request #38 from ronangaillard/fix/implicit-int-cast

Fix implicit casting
This commit is contained in:
SSYYL 2020-12-04 18:34:02 +08:00 committed by GitHub
commit 2fe12e1a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,7 @@ class EPD:
self.send_command(0x26)
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.TurnOnDisplayPart()