Even though a basic super loop can only step through functions sequentially, there are still ways to achieve parallelism. MCUs have a few different types of specialized hardware designed to take some of the burden away from the CPU, while still enabling a highly responsive system. This section will introduce those systems and how they can be used within the context of a super loop style program.
Achieving parallel operations with super loops
Introducing interrupts
Polling for a single event is not only wasteful in terms of CPU cycles and power – it also results in a system that isn't responsive to anything else, which should generally be avoided. So then, how can we get a single core processor to do things in...