mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
examples/hwapi/soft_pwm2_uasyncio: Update for call_later_ms().
Following finalized naming in uasyncio.
This commit is contained in:
@@ -27,5 +27,5 @@ async def fade_in_out(LED):
|
||||
|
||||
loop = uasyncio.get_event_loop()
|
||||
loop.create_task(fade_in_out(LED))
|
||||
loop.call_later_ms_(800, fade_in_out(LED2))
|
||||
loop.call_later_ms(800, fade_in_out(LED2))
|
||||
loop.run_forever()
|
||||
|
||||
Reference in New Issue
Block a user