From d21813443be1eff91f8a86dfa7e3538c7318beef Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sun, 15 Dec 2019 16:31:03 -0500 Subject: [PATCH] fixed usage of wrong function --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 239bdd2..0c6b28c 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -269,10 +269,10 @@ class EPD: def send_command_and_data(self, command, data=None): epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.LOW) # LOW: write command - epdconfig.spi_writebytes([command]) + epdconfig.spi_writebyte([command]) if data: epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.HIGH) # HIGH: write data - epdconfig.spi_writebytes(data) + epdconfig.spi_writebyte(data) def set_lut(self): look_up_tables = {