Pico ePaper 4.2" drivers: default 0 arg for .do_refresh.

pull/48/head
Peter Hinch 2024-07-24 17:51:58 +01:00
rodzic 7a354af87a
commit 059eefb67c
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -257,7 +257,7 @@ class EPD(framebuf.FrameBuffer):
# Specific method for micro-gui. Unsuitable EPD's lack this method. Micro-gui
# does not test for asyncio as this is guaranteed to be up.
async def do_refresh(self, split):
async def do_refresh(self, split=0):
assert not self._busy, "Refresh while busy"
await self._as_show() # split=5

Wyświetl plik

@ -227,7 +227,7 @@ class EPD(framebuf.FrameBuffer):
return inner
# micro-gui API; asyncio is running.
async def do_refresh(self, split): # split = 5
async def do_refresh(self, split=0): # split = 5
assert not self._busy, "Refresh while busy"
if self._partial:
await self._as_show_partial()