From b67fbe06fef7b945af577271f9bb4ed4b3a9f12f Mon Sep 17 00:00:00 2001 From: Loic Coyle Date: Mon, 29 Aug 2022 14:47:02 +0200 Subject: [PATCH] remove unused linewidth code --- .../python/lib/waveshare_epd/epd2in13_V3.py | 10 ---------- .../python/lib/waveshare_epd/epd2in13b_V4.py | 5 ----- 2 files changed, 15 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py index 7b56bb8..806d6f2 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py @@ -309,11 +309,6 @@ class EPD: image : Image data ''' def displayPartial(self, image): - if self.width%8 == 0: - linewidth = int(self.width/8) - else: - linewidth = int(self.width/8) + 1 - epdconfig.digital_write(self.reset_pin, 0) epdconfig.delay_ms(1) epdconfig.digital_write(self.reset_pin, 1) @@ -355,11 +350,6 @@ class EPD: image : Image data ''' def displayPartBaseImage(self, image): - if self.width%8 == 0: - linewidth = int(self.width/8) - else: - linewidth = int(self.width/8) + 1 - self.send_command(0x24) self.send_data2(image) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13b_V4.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13b_V4.py index ae36e54..21a7f5e 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13b_V4.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13b_V4.py @@ -163,11 +163,6 @@ class EPD: # display image def display(self, imageblack, imagered): - if self.width%8 == 0: - linewidth = int(self.width/8) - else: - linewidth = int(self.width/8) + 1 - self.send_command(0x24) self.send_data2(imageblack)