Hello Guys,
I would like to understand how is the sleep function (utime.sleep()) realized on hw.
Because if it is implemented as the same way like a delay() in Arduino style the controller stops all activity for the specific time.
Right?
Or is utime.sleep() realized in a other way?
How is utime.sleep() realized?
- Hasenradball
- Posts: 15
- Joined: Tue May 21, 2019 12:52 pm
- Location: Germany
- Contact:
Re: How is utime.sleep() realized?
That's right - if you want to do something smarter I would recommend taking a look at asyncio
Peter has an excellent tutorial here https://github.com/peterhinch/micropyth ... UTORIAL.md
Peter has an excellent tutorial here https://github.com/peterhinch/micropyth ... UTORIAL.md