Code: Select all
async def poll():
while True:
if MCP.read_pin():
print("Pin changed state.")
await uasyncio.sleep_ms(10)
Code: Select all
async def poll():
while True:
if MCP.read_pin():
print("Pin changed state.")
await uasyncio.sleep_ms(10)
Code: Select all
async def poll():
while True:
if MCP.read_pin():
print("Pin changed state.")