199k views
2 votes
What among the following is an example of external interrupt for the Arduino?

1) Button
2) Resistor
3) LED
4) Capacitor

User Verbe
by
9.1k points

1 Answer

7 votes

Final answer:

A button serves as an example of an external interrupt for an Arduino, which interrupts the microcontroller to execute specific code upon being pressed.

Step-by-step explanation:

Among the following options, a button is an example of an external interrupt for the Arduino. When a button is pressed, it causes the microcontroller to pause its current tasks and execute a function or a block of code, which is referred to as an Interrupt Service Routine (ISR). An external interrupt is triggered by an external event, like a button press, rather than by events happening inside the microcontroller, such as a timer overflow.

User Peter Mounce
by
8.6k points