Search found 4 matches
- Sat Oct 10, 2020 11:59 am
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - sched module, long delay events.
- Replies: 5
- Views: 3269
Re: uasyncio - sched module, long delay events.
Thanks Peter, especially for the valuable advice on my code. I would like to congratulate you for the amazing work you did with the uasyncio tutorial. Since I discovered the existence of uasyncio I completely rewrote the code of my project which was previously based on threads. Now I have no more pr...
- Fri Oct 09, 2020 12:24 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - sched module, long delay events.
- Replies: 5
- Views: 3269
Re: uasyncio - sched module, long delay events.
Thank you Peter, but the point is that I am indeed talking about your schedule module not the micropython.schedule(). # sched.py # Copyright (c) 2020 Peter Hinch # Released under the MIT License (MIT) - see LICENSE file import uasyncio as asyncio from sched.primitives import launch from time import ...
- Thu Oct 08, 2020 3:19 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - sched module, long delay events.
- Replies: 5
- Views: 3269
Re: uasyncio - sched module, long delay events.
Hello, struggling days to understand why a schedule like this (running on a pyboardv1.1 fw:1.13): async def mycoro(): print('hello world') await asyncio.sleep(0) async def main(): asyncio.create_task(schedule(mycoro, hrs=12)) try: loop = asyncio.get_event_loop() loop.create_task(main()) loop.run_fo...
- Thu Oct 08, 2020 11:16 am
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - sched module, long delay events.
- Replies: 5
- Views: 3269
uasyncio - sched module, long delay events.
Hello, struggling days to understand why a schedule like this (running on a pyboardv1.1 fw:1.13): async def mycoro(): print('hello world') await asyncio.sleep(0) async def main(): asyncio.create_task(schedule(mycoro, hrs=12)) try: loop = asyncio.get_event_loop() loop.create_task(main()) loop.run_for...