From 46a789db21c43c231b981eeebf0a611522cac522 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Tue, 10 Dec 2019 22:37:50 -0500 Subject: [PATCH] changed set_lut to python for loop --- .../python/lib/waveshare_epd/epd2in7.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index f37b705..4bbb5d4 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -221,14 +221,12 @@ class EPD: self.send_command(LUT_BLACK_TO_WHITE) # bw r for command in self.lut_bw: self.send_data(command) - for count in range(0, 42): - self.send_data(self.lut_bw[count]) self.send_command(LUT_WHITE_TO_BLACK) # wb w - for count in range(0, 42): - self.send_data(self.lut_bb[count]) + for command in self.lut_bb: + self.send_data(command) self.send_command(LUT_BLACK_TO_BLACK) # bb b - for count in range(0, 42): - self.send_data(self.lut_wb[count]) + for command in self.lut_wb: + self.send_data(command) def gray_SetLut(self): self.send_command(LUT_FOR_VCOM)