CODE EXPLANATION
•
setInterrupts() Enables interrupts on the pins connected to
the buttons
[1] [2]
•
ISR(PCINT0_vect) This is where we tell the microprocessor what
actions to perform when an interrupt is called. It is best to
keep it short so that the processor can quickly return to its
normal state.
•
eliminateBounce() The mechanical contacts are not perfect.
They are unstable. Therefore, it is necessary to remove the
rebounds in order to get a clear Low when a button is pressed.
.
Need help?
Do you have a question about the Arduino starter kit with Logic Analyzer and is the answer not in the manual?