Check this out - How to track debouncing in an interrupt function?
"Do watch out for contact bounce if you have mechanical switches, and
write your code to accomodate that in a fail-safe manner (expect
multiple mS of bounce.) "
Check this out - How to track debouncing in an interrupt function?
"Do watch out for contact bounce if you have mechanical switches, and
write your code to accomodate that in a fail-safe manner (expect
multiple mS of bounce.) "