diff --git a/1.54inch_e-paper_b_code/RaspberryPi/python2/epd1in54b.py b/1.54inch_e-paper_b_code/RaspberryPi/python2/epd1in54b.py index 5e19094..8c4f29b 100644 --- a/1.54inch_e-paper_b_code/RaspberryPi/python2/epd1in54b.py +++ b/1.54inch_e-paper_b_code/RaspberryPi/python2/epd1in54b.py @@ -153,7 +153,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/1.54inch_e-paper_b_code/RaspberryPi/python3/epd1in54b.py b/1.54inch_e-paper_b_code/RaspberryPi/python3/epd1in54b.py index 521f5d3..200b214 100644 --- a/1.54inch_e-paper_b_code/RaspberryPi/python3/epd1in54b.py +++ b/1.54inch_e-paper_b_code/RaspberryPi/python3/epd1in54b.py @@ -153,7 +153,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/1.54inch_e-paper_c_code/RaspberryPi/python2/epd1in54c.py b/1.54inch_e-paper_c_code/RaspberryPi/python2/epd1in54c.py index 60a49cc..e86f8df 100644 --- a/1.54inch_e-paper_c_code/RaspberryPi/python2/epd1in54c.py +++ b/1.54inch_e-paper_c_code/RaspberryPi/python2/epd1in54c.py @@ -111,7 +111,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/1.54inch_e-paper_c_code/RaspberryPi/python3/epd1in54c.py b/1.54inch_e-paper_c_code/RaspberryPi/python3/epd1in54c.py index f905a4e..21e9f8a 100644 --- a/1.54inch_e-paper_c_code/RaspberryPi/python3/epd1in54c.py +++ b/1.54inch_e-paper_c_code/RaspberryPi/python3/epd1in54c.py @@ -111,7 +111,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/1.54inch_e-paper_code/RaspberryPi/python2/epd1in54.py b/1.54inch_e-paper_code/RaspberryPi/python2/epd1in54.py index 60a49cc..e86f8df 100644 --- a/1.54inch_e-paper_code/RaspberryPi/python2/epd1in54.py +++ b/1.54inch_e-paper_code/RaspberryPi/python2/epd1in54.py @@ -111,7 +111,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/1.54inch_e-paper_code/RaspberryPi/python3/epd1in54.py b/1.54inch_e-paper_code/RaspberryPi/python3/epd1in54.py index f905a4e..21e9f8a 100644 --- a/1.54inch_e-paper_code/RaspberryPi/python3/epd1in54.py +++ b/1.54inch_e-paper_code/RaspberryPi/python3/epd1in54.py @@ -111,7 +111,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.13inch_e-paper_b&c_code/RaspberryPi/python2/epd2in13b.py b/2.13inch_e-paper_b&c_code/RaspberryPi/python2/epd2in13b.py index 4894cb8..676461f 100644 --- a/2.13inch_e-paper_b&c_code/RaspberryPi/python2/epd2in13b.py +++ b/2.13inch_e-paper_b&c_code/RaspberryPi/python2/epd2in13b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.13inch_e-paper_b&c_code/RaspberryPi/python3/epd2in13b.py b/2.13inch_e-paper_b&c_code/RaspberryPi/python3/epd2in13b.py index 567472c..1e5b71b 100644 --- a/2.13inch_e-paper_b&c_code/RaspberryPi/python3/epd2in13b.py +++ b/2.13inch_e-paper_b&c_code/RaspberryPi/python3/epd2in13b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.13inch_e-paper_code/RaspberryPi/python2/epd2in13.py b/2.13inch_e-paper_code/RaspberryPi/python2/epd2in13.py index dcb942c..26c4d0f 100644 --- a/2.13inch_e-paper_code/RaspberryPi/python2/epd2in13.py +++ b/2.13inch_e-paper_code/RaspberryPi/python2/epd2in13.py @@ -63,14 +63,12 @@ class EPD: # Hardware reset def reset(self): - epdconfig.digital_write(self.cs_pin, GPIO.LOW) epdconfig.digital_write(self.reset_pin, GPIO.HIGH) epdconfig.delay_ms(200) epdconfig.digital_write(self.reset_pin, GPIO.LOW) # module reset epdconfig.delay_ms(200) epdconfig.digital_write(self.reset_pin, GPIO.HIGH) - epdconfig.delay_ms(200) - epdconfig.digital_write(self.cs_pin, GPIO.HIGH) + epdconfig.delay_ms(200) def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) diff --git a/2.13inch_e-paper_d_code/RaspberryPi/python2/epd2in13d.py b/2.13inch_e-paper_d_code/RaspberryPi/python2/epd2in13d.py index dc6a047..a7c75a9 100644 --- a/2.13inch_e-paper_d_code/RaspberryPi/python2/epd2in13d.py +++ b/2.13inch_e-paper_d_code/RaspberryPi/python2/epd2in13d.py @@ -176,7 +176,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.13inch_e-paper_d_code/RaspberryPi/python3/epd2in13d.py b/2.13inch_e-paper_d_code/RaspberryPi/python3/epd2in13d.py index 6daa5cc..0248c3c 100644 --- a/2.13inch_e-paper_d_code/RaspberryPi/python3/epd2in13d.py +++ b/2.13inch_e-paper_d_code/RaspberryPi/python3/epd2in13d.py @@ -176,7 +176,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.7inch_e-paper_b_code/RaspberryPi/python2/epd2in7b.py b/2.7inch_e-paper_b_code/RaspberryPi/python2/epd2in7b.py index 922f4e8..e9b053a 100644 --- a/2.7inch_e-paper_b_code/RaspberryPi/python2/epd2in7b.py +++ b/2.7inch_e-paper_b_code/RaspberryPi/python2/epd2in7b.py @@ -168,7 +168,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.7inch_e-paper_b_code/RaspberryPi/python3/epd2in7b.py b/2.7inch_e-paper_b_code/RaspberryPi/python3/epd2in7b.py index fc0c5cf..76f8234 100644 --- a/2.7inch_e-paper_b_code/RaspberryPi/python3/epd2in7b.py +++ b/2.7inch_e-paper_b_code/RaspberryPi/python3/epd2in7b.py @@ -168,7 +168,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.7inch_e-paper_code/RaspberryPi/python2/epd2in7.py b/2.7inch_e-paper_code/RaspberryPi/python2/epd2in7.py index 3039918..2e29bed 100644 --- a/2.7inch_e-paper_code/RaspberryPi/python2/epd2in7.py +++ b/2.7inch_e-paper_code/RaspberryPi/python2/epd2in7.py @@ -161,7 +161,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.7inch_e-paper_code/RaspberryPi/python3/epd2in7.py b/2.7inch_e-paper_code/RaspberryPi/python3/epd2in7.py index 0d54714..5b784e9 100644 --- a/2.7inch_e-paper_code/RaspberryPi/python3/epd2in7.py +++ b/2.7inch_e-paper_code/RaspberryPi/python3/epd2in7.py @@ -161,7 +161,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.9inch_e-paper_b&c_code/RaspberryPi/python2/epd2in9b.py b/2.9inch_e-paper_b&c_code/RaspberryPi/python2/epd2in9b.py index 7efc127..5303200 100644 --- a/2.9inch_e-paper_b&c_code/RaspberryPi/python2/epd2in9b.py +++ b/2.9inch_e-paper_b&c_code/RaspberryPi/python2/epd2in9b.py @@ -110,7 +110,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.9inch_e-paper_b&c_code/RaspberryPi/python3/epd2in9b.py b/2.9inch_e-paper_b&c_code/RaspberryPi/python3/epd2in9b.py index 5402f6b..68dea03 100644 --- a/2.9inch_e-paper_b&c_code/RaspberryPi/python3/epd2in9b.py +++ b/2.9inch_e-paper_b&c_code/RaspberryPi/python3/epd2in9b.py @@ -110,7 +110,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.9inch_e-paper_code/RaspberryPi/python2/epd2in9.py b/2.9inch_e-paper_code/RaspberryPi/python2/epd2in9.py index d7efad7..b6230d6 100644 --- a/2.9inch_e-paper_code/RaspberryPi/python2/epd2in9.py +++ b/2.9inch_e-paper_code/RaspberryPi/python2/epd2in9.py @@ -113,7 +113,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/2.9inch_e-paper_code/RaspberryPi/python3/epd2in9.py b/2.9inch_e-paper_code/RaspberryPi/python3/epd2in9.py index f91914b..fa8ceb5 100644 --- a/2.9inch_e-paper_code/RaspberryPi/python3/epd2in9.py +++ b/2.9inch_e-paper_code/RaspberryPi/python3/epd2in9.py @@ -113,7 +113,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/4.2inch_e-paper_b&c_code/RaspberryPi/python2/epd4in2b.py b/4.2inch_e-paper_b&c_code/RaspberryPi/python2/epd4in2b.py index a8097fd..f920438 100644 --- a/4.2inch_e-paper_b&c_code/RaspberryPi/python2/epd4in2b.py +++ b/4.2inch_e-paper_b&c_code/RaspberryPi/python2/epd4in2b.py @@ -116,7 +116,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/4.2inch_e-paper_b&c_code/RaspberryPi/python3/epd4in2b.py b/4.2inch_e-paper_b&c_code/RaspberryPi/python3/epd4in2b.py index 2c80d1b..660a440 100644 --- a/4.2inch_e-paper_b&c_code/RaspberryPi/python3/epd4in2b.py +++ b/4.2inch_e-paper_b&c_code/RaspberryPi/python3/epd4in2b.py @@ -116,7 +116,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/4.2inch_e-paper_code/RaspberryPi/python2/epd4in2.py b/4.2inch_e-paper_code/RaspberryPi/python2/epd4in2.py index 8116e4e..2374673 100644 --- a/4.2inch_e-paper_code/RaspberryPi/python2/epd4in2.py +++ b/4.2inch_e-paper_code/RaspberryPi/python2/epd4in2.py @@ -161,7 +161,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/4.2inch_e-paper_code/RaspberryPi/python3/epd4in2.py b/4.2inch_e-paper_code/RaspberryPi/python3/epd4in2.py index 73cb99c..91749ba 100644 --- a/4.2inch_e-paper_code/RaspberryPi/python3/epd4in2.py +++ b/4.2inch_e-paper_code/RaspberryPi/python3/epd4in2.py @@ -161,7 +161,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/5.83inch_e-paper_b&c_code/RaspberryPi/python2/epd5in83b.py b/5.83inch_e-paper_b&c_code/RaspberryPi/python2/epd5in83b.py index 4dc1b60..cfcf007 100644 --- a/5.83inch_e-paper_b&c_code/RaspberryPi/python2/epd5in83b.py +++ b/5.83inch_e-paper_b&c_code/RaspberryPi/python2/epd5in83b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/5.83inch_e-paper_b&c_code/RaspberryPi/python3/epd5in83b.py b/5.83inch_e-paper_b&c_code/RaspberryPi/python3/epd5in83b.py index fdb51eb..3701a39 100644 --- a/5.83inch_e-paper_b&c_code/RaspberryPi/python3/epd5in83b.py +++ b/5.83inch_e-paper_b&c_code/RaspberryPi/python3/epd5in83b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/5.83inch_e-paper_code/RaspberryPi/python2/epd5in83.py b/5.83inch_e-paper_code/RaspberryPi/python2/epd5in83.py index cc83870..1f36cbb 100644 --- a/5.83inch_e-paper_code/RaspberryPi/python2/epd5in83.py +++ b/5.83inch_e-paper_code/RaspberryPi/python2/epd5in83.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/5.83inch_e-paper_code/RaspberryPi/python3/epd5in83.py b/5.83inch_e-paper_code/RaspberryPi/python3/epd5in83.py index ab0ccda..fc4149c 100644 --- a/5.83inch_e-paper_code/RaspberryPi/python3/epd5in83.py +++ b/5.83inch_e-paper_code/RaspberryPi/python3/epd5in83.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/7.5inch_e-paper_b&c_code/RaspberryPi/python2/epd7in5b.py b/7.5inch_e-paper_b&c_code/RaspberryPi/python2/epd7in5b.py index 7d1633b..84dab13 100644 --- a/7.5inch_e-paper_b&c_code/RaspberryPi/python2/epd7in5b.py +++ b/7.5inch_e-paper_b&c_code/RaspberryPi/python2/epd7in5b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/7.5inch_e-paper_b&c_code/RaspberryPi/python3/epd7in5b.py b/7.5inch_e-paper_b&c_code/RaspberryPi/python3/epd7in5b.py index aa149f1..094fdc6 100644 --- a/7.5inch_e-paper_b&c_code/RaspberryPi/python3/epd7in5b.py +++ b/7.5inch_e-paper_b&c_code/RaspberryPi/python3/epd7in5b.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/7.5inch_e-paper_code/RaspberryPi/python2/epd7in5.py b/7.5inch_e-paper_code/RaspberryPi/python2/epd7in5.py index a558da8..fd58f39 100644 --- a/7.5inch_e-paper_code/RaspberryPi/python2/epd7in5.py +++ b/7.5inch_e-paper_code/RaspberryPi/python2/epd7in5.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH) diff --git a/7.5inch_e-paper_code/RaspberryPi/python3/epd7in5.py b/7.5inch_e-paper_code/RaspberryPi/python3/epd7in5.py index fcfded2..ce0092b 100644 --- a/7.5inch_e-paper_code/RaspberryPi/python3/epd7in5.py +++ b/7.5inch_e-paper_code/RaspberryPi/python3/epd7in5.py @@ -115,7 +115,7 @@ class EPD: def send_command(self, command): epdconfig.digital_write(self.cs_pin, GPIO.LOW) - epdconfig.digital_write(self.dc_pin, GPIO.HIGH) + epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command]) epdconfig.digital_write(self.cs_pin, GPIO.HIGH)