From 1a82aa1bc5ed1abe09e11c11ad1824b19b766803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Schr=C3=B6der?= Date: Tue, 8 Sep 2020 00:53:35 +0200 Subject: [PATCH] add missing cast to int avoid `TypeError: 'float' object cannot be interpreted as an integer` --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py index bda93cd..2a326b6 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py @@ -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()