Driver pico_epaper_42.py now micro-gui compliant.

pull/9/merge
peterhinch 2023-04-13 10:45:44 +01:00
rodzic 27e0a88b62
commit 7e36ff6905
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -263,6 +263,9 @@ class EPD(framebuf.FrameBuffer):
await asyncio.sleep_ms(10) # About 1.7s
self._busy = False
async def do_refresh(self, split): # For micro-gui
await self._as_show()
def show(self):
if self._busy:
raise RuntimeError('Cannot refresh: display is busy.')