From 146805c875f8a1e71b1413b20640d92973e2c5b8 Mon Sep 17 00:00:00 2001 From: ticaki <59184294+ticaki@users.noreply.github.com> Date: Thu, 2 Jan 2020 12:29:47 +0100 Subject: [PATCH] Update epd4in2.py --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd4in2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd4in2.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd4in2.py index 5a15fc5..c6b5b5e 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd4in2.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd4in2.py @@ -384,7 +384,7 @@ class EPD: def display_4Gray(self, image): self.send_command(0x10) - for i in range(0, EPD_WIDTH * EPD_HEIGHT / 8): # EPD_WIDTH * EPD_HEIGHT / 4 + for i in range(0, int(EPD_WIDTH * EPD_HEIGHT / 8)): # EPD_WIDTH * EPD_HEIGHT / 4 temp3=0 for j in range(0, 2): temp1 = image[i*2+j] @@ -417,7 +417,7 @@ class EPD: self.send_command(0x13) - for i in range(0, EPD_WIDTH * EPD_HEIGHT / 8): #5808*4 46464 + for i in range(0, int(EPD_WIDTH * EPD_HEIGHT / 8)): #5808*4 46464 temp3=0 for j in range(0, 2): temp1 = image[i*2+j]