There’s some debounce code in this sketch:
see the CheckButtonState function.
In theory, millis() shouldn’t be used in an interrupt driven function, as it’s not 100% accurate, but it seems to work.
Pete.
There’s some debounce code in this sketch:
see the CheckButtonState function.
In theory, millis() shouldn’t be used in an interrupt driven function, as it’s not 100% accurate, but it seems to work.
Pete.