From 1ab7b8cf2d25ee1c3e91d89371bc09e3cd4733f9 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sun, 15 Dec 2019 16:30:35 -0500 Subject: [PATCH] corrected usage of wrong module --- .../python/lib/waveshare_epd/epd2in7.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index b764c3c..239bdd2 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -268,11 +268,11 @@ class EPD: logging.debug("e-Paper busy release") def send_command_and_data(self, command, data=None): - self.digital_write(self.dc_pin, epdif.GPIO.LOW) # LOW: write command - epdif.spi_writebytes([command]) + epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.LOW) # LOW: write command + epdconfig.spi_writebytes([command]) if data: - self.digital_write(self.dc_pin, epdif.GPIO.HIGH) # HIGH: write data - epdif.spi_writebytes(data) + epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.HIGH) # HIGH: write data + epdconfig.spi_writebytes(data) def set_lut(self): look_up_tables = {