Update epd7in5_V2.py
This commit is contained in:
parent
ee81be4a61
commit
0871147bb7
1 changed files with 3 additions and 3 deletions
|
|
@ -130,12 +130,12 @@ class EPD:
|
|||
def ReadBusy(self):
|
||||
logger.debug("e-Paper busy")
|
||||
# self.send_command(0x71)
|
||||
count = 0
|
||||
iter = 0
|
||||
while epdconfig.digital_read(self.busy_pin) == 0:
|
||||
# self.send_command(0x71)
|
||||
epdconfig.delay_ms(100)
|
||||
count += 1
|
||||
if count > 150:
|
||||
iter += 1
|
||||
if iter > 150:
|
||||
logger.info("Forced e-paper busy release")
|
||||
break
|
||||
logger.debug("e-Paper busy release")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue