Embedded systems need a way to schedule activities and respond to events in an efficient and deterministic manner. MicroPython offers developers several methods to achieve task scheduling.
In this chapter, we will review the methods that are most commonly used by developers and how to use uasyncio to schedule our own real-time tasks.
The following topics will be covered in this chapter:
- The need for real-time scheduling
- MicroPython scheduling techniques
- Writing a scheduling loop with uasyncio