Пример #1
0
 def ReadBusy(self):
     logging.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(200)
Пример #2
0
 def ReadBusy(self):
     logging.debug("e-Paper busy")
     self.send_command(0x71)
     busy = epdconfig.digital_read(self.busy_pin)
     busy = not (busy & 0x01)
     while (busy):
         self.send_command(0x71)
         busy = epdconfig.digital_read(self.busy_pin)
         busy = not (busy & 0x01)
     epdconfig.delay_ms(800)
     logging.debug("e-Paper busy release")
Пример #3
0
 def ReadBusy(self):
     logging.debug("e-Paper busy")
     while(epdconfig.digital_read(self.busy_pin) == 0):      # 0: idle, 1: busy
         self.send_command(0x71)
         epdconfig.delay_ms(100)  
     logging.debug("e-Paper busy release")
Пример #4
0
 def ReadBusy(self):
     logging.debug("e-Paper busy")
     while (epdconfig.digital_read(self.busy_pin) == 0):
         epdconfig.delay_ms(100)
     logging.debug("e-Paper busy release")
Пример #5
0
 def ReadBusy(self):
     while (epdconfig.digital_read(self.busy_pin) == 1):  # 0: idle, 1: busy
         epdconfig.delay_ms(100)