From 165fe442bdee2e40c41b5737309c935882376fdc Mon Sep 17 00:00:00 2001 From: Brian Y Date: Tue, 10 Dec 2019 22:28:38 -0500 Subject: [PATCH] corrected erroneous send_command to send_data --- 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 26c8518..f37b705 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -214,11 +214,13 @@ class EPD: def set_lut(self): self.send_command(LUT_FOR_VCOM) # vcom for command in self.lut_vcom_dc: - self.send_command(command) + self.send_data(command) self.send_command(LUT_WHITE_TO_WHITE) # ww -- for command in self.lut_ww: - self.send_command(command) + self.send_data(command) 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