From 25e037ffe500dd50e7b73af2f89efab9f2aee788 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Tue, 10 Dec 2019 21:17:37 -0500 Subject: [PATCH] Update epd2in7.py --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 250f68f..2ea9c26 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -213,8 +213,10 @@ class EPD: def set_lut(self): self.send_command(LUT_FOR_VCOM) # vcom - for count in range(0, 44): - self.send_data(self.lut_vcom_dc[count]) + # for count in range(0, 44): + # self.send_data(self.lut_vcom_dc[count]) + for command in self.lut_vcom_dc: + self.send_command(command) self.send_command(LUT_WHITE_TO_WHITE) # ww -- for count in range(0, 42): self.send_data(self.lut_ww[count])