From f1ff38ce27f39a2550220dfbefe602f32b77ec44 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 10:59:58 -0400 Subject: [PATCH 01/10] Update epd7in5_V2.py --- .../python/lib/waveshare_epd/epd7in5_V2.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index b1495ca..2b9f541 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -129,12 +129,15 @@ class EPD: def ReadBusy(self): logger.debug("e-Paper busy") - self.send_command(0x71) - busy = epdconfig.digital_read(self.busy_pin) - while(busy == 0): - self.send_command(0x71) - busy = epdconfig.digital_read(self.busy_pin) - epdconfig.delay_ms(20) + # self.send_command(0x71) + count = 0 + while epdconfig.digital_read(self.busy_pin) == 0: + # self.send_command(0x71) + epdconfig.delay_ms(100) + iter += 1 + if count > 150: + logger.info("Forced e-paper busy release") + break logger.debug("e-Paper busy release") def SetLut(self, lut_vcom, lut_ww, lut_bw, lut_wb, lut_bb): From a05aab9bfe11b9494f1381a4e0cc4dc09ea06f65 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:10:53 -0400 Subject: [PATCH 02/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index 2b9f541..a8189ec 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -203,7 +203,7 @@ class EPD: self.ReadBusy() self.send_command(0X00) #PANNEL SETTING - self.send_data(0x3F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f + self.send_data(0x1F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f self.send_command(0x61) #tres self.send_data(0x03) #source 800 From ee81be4a6129ad2a38cd935a5de7acf937a6b6d5 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:14:56 -0400 Subject: [PATCH 03/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index a8189ec..d7f1e67 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -134,7 +134,7 @@ class EPD: while epdconfig.digital_read(self.busy_pin) == 0: # self.send_command(0x71) epdconfig.delay_ms(100) - iter += 1 + count += 1 if count > 150: logger.info("Forced e-paper busy release") break From 0871147bb70fb5d78287f4cd9ea388c5842b340b Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:17:16 -0400 Subject: [PATCH 04/10] Update epd7in5_V2.py --- .../python/lib/waveshare_epd/epd7in5_V2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index d7f1e67..9b382d0 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -130,12 +130,12 @@ class EPD: def ReadBusy(self): logger.debug("e-Paper busy") # self.send_command(0x71) - count = 0 + iter = 0 while epdconfig.digital_read(self.busy_pin) == 0: # self.send_command(0x71) epdconfig.delay_ms(100) - count += 1 - if count > 150: + iter += 1 + if iter > 150: logger.info("Forced e-paper busy release") break logger.debug("e-Paper busy release") From 972f580dc10637a96cc05ba9d7599c96c1173dd1 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:17:40 -0400 Subject: [PATCH 05/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index 9b382d0..cda0a77 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -203,7 +203,7 @@ class EPD: self.ReadBusy() self.send_command(0X00) #PANNEL SETTING - self.send_data(0x1F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f + self.send_data(0x3F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f self.send_command(0x61) #tres self.send_data(0x03) #source 800 From 2c1334836e01e2ee9c3ddd97f071691393c9c8cb Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:23:22 -0400 Subject: [PATCH 06/10] Update epd7in5_V2.py --- .../python/lib/waveshare_epd/epd7in5_V2.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index cda0a77..6d8b249 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -129,15 +129,15 @@ class EPD: def ReadBusy(self): logger.debug("e-Paper busy") - # self.send_command(0x71) + # self.send_command(0x71) iter = 0 while epdconfig.digital_read(self.busy_pin) == 0: - # self.send_command(0x71) - epdconfig.delay_ms(100) - iter += 1 - if iter > 150: - logger.info("Forced e-paper busy release") - break + # self.send_command(0x71) + epdconfig.delay_ms(100) + iter += 1 + if iter > 150: + logger.info("Forced e-paper busy release") + break logger.debug("e-Paper busy release") def SetLut(self, lut_vcom, lut_ww, lut_bw, lut_wb, lut_bb): From f25bbdef1445ec82df5a49cb24851889e1f67961 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:24:25 -0400 Subject: [PATCH 07/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index 6d8b249..5cc8460 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -128,7 +128,7 @@ class EPD: epdconfig.digital_write(self.cs_pin, 1) def ReadBusy(self): - logger.debug("e-Paper busy") + logger.debug("e-Paper busy") # self.send_command(0x71) iter = 0 while epdconfig.digital_read(self.busy_pin) == 0: From c7821e6570c500bc5de6aa308d7bdb370db3002d Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:25:47 -0400 Subject: [PATCH 08/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index 5cc8460..a654a83 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -131,7 +131,7 @@ class EPD: logger.debug("e-Paper busy") # self.send_command(0x71) iter = 0 - while epdconfig.digital_read(self.busy_pin) == 0: + while epdconfig.digital_read(self.busy_pin) == 0: # self.send_command(0x71) epdconfig.delay_ms(100) iter += 1 From bbda98d9fe55a5ce33d2aef59f2981e81416aa88 Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:28:22 -0400 Subject: [PATCH 09/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index a654a83..a8f1e7b 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -203,7 +203,7 @@ class EPD: self.ReadBusy() self.send_command(0X00) #PANNEL SETTING - self.send_data(0x3F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f + self.send_data(0x1F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f self.send_command(0x61) #tres self.send_data(0x03) #source 800 From 15481cfd7fefc7fdcf7713d0be32dabfc83f775e Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Wed, 1 Sep 2021 09:47:15 -0400 Subject: [PATCH 10/10] Update epd7in5_V2.py --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index a8f1e7b..59d8d8f 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -129,10 +129,8 @@ class EPD: def ReadBusy(self): logger.debug("e-Paper busy") - # self.send_command(0x71) iter = 0 while epdconfig.digital_read(self.busy_pin) == 0: - # self.send_command(0x71) epdconfig.delay_ms(100) iter += 1 if iter > 150: