add 4.01f demo

This commit is contained in:
SSYYL 2021-01-05 15:21:46 +08:00
commit 7b958776c8
52 changed files with 11250 additions and 1902 deletions

View file

@ -134,7 +134,7 @@ class EPD:
def ReadBusy(self):
logging.debug("e-Paper busy")
while(epdconfig.digital_read(self.busy_pin) == 1): # 0: idle, 1: busy
epdconfig.delay_ms(200)
epdconfig.delay_ms(10)
logging.debug("e-Paper busy release")
@ -401,7 +401,7 @@ class EPD:
for i in range(0, int(self.width / 8)):
self.send_data(image[i + j * int(self.width / 8)])
self.load_lut(self.lut_1Gray_DU)
self.load_lut(self.lut_1Gray_A2)
self.send_command(0x20)
self.ReadBusy()