I found that many tutorials do not provide correct information about the use of interrupt.
You will see in most examples a timer interrupt is used to turn on the LED or a hardware interrupt is used for the button. I'm sure turning the LED on/off or reading the button is not a time critical task's.
Maybe it's easier to do an interrupt test with a LED/button, so most examples give an example LED/button
You will see in most examples a timer interrupt is used to turn on the LED or a hardware interrupt is used for the button. I'm sure turning the LED on/off or reading the button is not a time critical task's.
Maybe it's easier to do an interrupt test with a LED/button, so most examples give an example LED/button