|
5 | 5 | This sample uses an interrupt service routine (ISR) named `blink` to toggle |
6 | 6 | a global state variable and then uses the built-in LED to display the value |
7 | 7 | of the cached state to the user. The work of updating the cached state happens |
8 | | -asychronously in the interrupt service routine. |
| 8 | +asynchronously in the interrupt service routine. |
9 | 9 |
|
10 | 10 | This sample can easily be modified from behaving as a button into behaving as |
11 | | - a switch, by changing the interrupt mode from CHANGE to LOW.Futhermore, this |
| 11 | + a switch, by changing the interrupt mode from CHANGE to LOW.Furthermore, this |
12 | 12 | example can be modified to update the built-in LED from inside in the ISR, |
13 | 13 | which would allow the loop function to be empty yet still allow actions and |
14 | 14 | reactions to occur. |
|