fixed usage of wrong function
This commit is contained in:
parent
1ab7b8cf2d
commit
d21813443b
1 changed files with 2 additions and 2 deletions
|
|
@ -269,10 +269,10 @@ class EPD:
|
||||||
|
|
||||||
def send_command_and_data(self, command, data=None):
|
def send_command_and_data(self, command, data=None):
|
||||||
epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.LOW) # LOW: write command
|
epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.LOW) # LOW: write command
|
||||||
epdconfig.spi_writebytes([command])
|
epdconfig.spi_writebyte([command])
|
||||||
if data:
|
if data:
|
||||||
epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.HIGH) # HIGH: write 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):
|
def set_lut(self):
|
||||||
look_up_tables = {
|
look_up_tables = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue