Replies: 2 comments 3 replies
-
You have created two instances of the async def main():
uasyncio.create_task(clock())
while True:
await temperatures() You might like to look at the uasyncio tutorial. |
Beta Was this translation helpful? Give feedback.
-
When the following executes async def foo():
await bar()
do_something() the async def foo():
asyncio.create_task(bar())
do_something()
The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to do multitasking using the asyncio module with the following code on a pico w:
and these are the results:
Apparently, the temperature routine is called every 6 seconds (approx.) but the clock is called twice/second.
Why is that?
TIA
Beta Was this translation helpful? Give feedback.
All reactions