kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
Driver pico_epaper_42.py now micro-gui compliant.
rodzic
27e0a88b62
commit
7e36ff6905
|
@ -263,6 +263,9 @@ class EPD(framebuf.FrameBuffer):
|
||||||
await asyncio.sleep_ms(10) # About 1.7s
|
await asyncio.sleep_ms(10) # About 1.7s
|
||||||
self._busy = False
|
self._busy = False
|
||||||
|
|
||||||
|
async def do_refresh(self, split): # For micro-gui
|
||||||
|
await self._as_show()
|
||||||
|
|
||||||
def show(self):
|
def show(self):
|
||||||
if self._busy:
|
if self._busy:
|
||||||
raise RuntimeError('Cannot refresh: display is busy.')
|
raise RuntimeError('Cannot refresh: display is busy.')
|
||||||
|
|
Ładowanie…
Reference in New Issue