corrected usage of wrong module

This commit is contained in:
Brian Y 2019-12-15 16:30:35 -05:00
commit 1ab7b8cf2d

View file

@ -268,11 +268,11 @@ class EPD:
logging.debug("e-Paper busy release") logging.debug("e-Paper busy release")
def send_command_and_data(self, command, data=None): def send_command_and_data(self, command, data=None):
self.digital_write(self.dc_pin, epdif.GPIO.LOW) # LOW: write command epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.LOW) # LOW: write command
epdif.spi_writebytes([command]) epdconfig.spi_writebytes([command])
if data: if data:
self.digital_write(self.dc_pin, epdif.GPIO.HIGH) # HIGH: write data epdconfig.digital_write(self.dc_pin, epdconfig.GPIO.HIGH) # HIGH: write data
epdif.spi_writebytes(data) epdconfig.spi_writebytes(data)
def set_lut(self): def set_lut(self):
look_up_tables = { look_up_tables = {