removed set_lut from clear
This commit is contained in:
parent
fc555dd5c0
commit
56db0d4e19
1 changed files with 4 additions and 4 deletions
|
|
@ -264,8 +264,7 @@ class EPD:
|
||||||
def ReadBusy(self):
|
def ReadBusy(self):
|
||||||
logging.debug("e-Paper busy")
|
logging.debug("e-Paper busy")
|
||||||
while(epdconfig.digital_read(self.busy_pin) == 0): # 0: idle, 1: busy
|
while(epdconfig.digital_read(self.busy_pin) == 0): # 0: idle, 1: busy
|
||||||
# epdconfig.delay_ms(1)
|
epdconfig.delay_ms(1)
|
||||||
pass
|
|
||||||
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):
|
||||||
|
|
@ -274,7 +273,8 @@ class EPD:
|
||||||
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_writebyte([byte]) for byte in data]
|
# [epdconfig.spi_writebyte([byte]) for byte in data]
|
||||||
epdconfig.spi_writebyte2(data)
|
# epdconfig.spi_writebyte2(data)
|
||||||
|
epdconfig.spi_writebyte(data)
|
||||||
|
|
||||||
def set_lut(self):
|
def set_lut(self):
|
||||||
look_up_tables = [
|
look_up_tables = [
|
||||||
|
|
@ -622,7 +622,7 @@ class EPD:
|
||||||
self.send_command(DATA_START_TRANSMISSION_2)
|
self.send_command(DATA_START_TRANSMISSION_2)
|
||||||
for i in range(0, int(self.width * self.height / 8)):
|
for i in range(0, int(self.width * self.height / 8)):
|
||||||
self.send_data(0xFF)
|
self.send_data(0xFF)
|
||||||
self.set_lut()
|
# self.set_lut()
|
||||||
self.send_command(DISPLAY_REFRESH)
|
self.send_command(DISPLAY_REFRESH)
|
||||||
self.ReadBusy()
|
self.ReadBusy()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue