From 6c23879c9b018a6751fdf7042b331b6b3cfab0f1 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sun, 15 Dec 2019 16:35:28 -0500 Subject: [PATCH] write byte as list --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 7dc1f99..5ca0739 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -272,7 +272,7 @@ class EPD: epdconfig.spi_writebyte([command]) if data: epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.HIGH) # HIGH: write data - [epdconfig.spi_writebyte(byte) for byte in data] + [epdconfig.spi_writebyte([byte]) for byte in data] def set_lut(self): look_up_tables = {