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()