Skip to content

Commit

Permalink
fix(epd7in5b_V2): cleanup ReadBusy
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jun 9, 2024
1 parent cc1b31f commit 4b5c24e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tinyticker/waveshare_lib/epd7in5b_V2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ def reset(self):
def ReadBusy(self):
logger.debug("e-Paper busy")
self.send_command(0x71)
busy = self.device.digital_read(self.busy_pin)
while busy == 0:
while self.device.digital_read(self.busy_pin) == 0:
self.send_command(0x71)
busy = self.device.digital_read(self.busy_pin)
self.device.delay_ms(200)
self.device.delay_ms(100)
logger.debug("e-Paper busy release")

def init(self):
Expand Down

0 comments on commit 4b5c24e

Please sign in to comment.