kopia lustrzana https://github.com/micropython/micropython-lib
14 wiersze
193 B
Python
14 wiersze
193 B
Python
![]() |
import uasyncio.core as asyncio
|
||
![]() |
import time
|
||
|
|
||
|
|
||
|
def cb():
|
||
|
print("callback")
|
||
|
time.sleep(0.5)
|
||
|
loop.call_soon(cb)
|
||
|
|
||
|
|
||
|
loop = asyncio.get_event_loop()
|
||
|
loop.call_soon(cb)
|
||
|
loop.run_forever()
|