
Once that code has wrapped up, the processor goes back to whatever it was originally doing as if nothing happened!

When a certain signal is detected, an Interrupt (as the name suggests) interrupts whatever the processor is doing, and executes some code designed to react to whatever external stimulus is being fed to the Arduino.

An Interrupt's job is to make sure that the processor responds quickly to important events. Intermediate We Interrupt This Broadcast.Īs it turns out, there's a great (and underutilized) mechanism built into all Arduinos that is ideal for monitoring these kinds of real-time events. Streamline your Arduino code with Interrupts - the simple way of reacting to real-time events! Recommended Level
