Update epd7in5_V2.py
This commit is contained in:
parent
1ac5cbad56
commit
f1ff38ce27
1 changed files with 9 additions and 6 deletions
|
|
@ -129,12 +129,15 @@ class EPD:
|
|||
|
||||
def ReadBusy(self):
|
||||
logger.debug("e-Paper busy")
|
||||
self.send_command(0x71)
|
||||
busy = epdconfig.digital_read(self.busy_pin)
|
||||
while(busy == 0):
|
||||
self.send_command(0x71)
|
||||
busy = epdconfig.digital_read(self.busy_pin)
|
||||
epdconfig.delay_ms(20)
|
||||
# self.send_command(0x71)
|
||||
count = 0
|
||||
while epdconfig.digital_read(self.busy_pin) == 0:
|
||||
# self.send_command(0x71)
|
||||
epdconfig.delay_ms(100)
|
||||
iter += 1
|
||||
if count > 150:
|
||||
logger.info("Forced e-paper busy release")
|
||||
break
|
||||
logger.debug("e-Paper busy release")
|
||||
|
||||
def SetLut(self, lut_vcom, lut_ww, lut_bw, lut_wb, lut_bb):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue