Open Bwanna opened 4 years ago
ISSUE: When a button activates Interrupt, debounce timer needs to be restarted to account for the period beginning when the INT occurs. RECOMMENDATION:
(Note: This is the first time I'm suggesting a change on GITHUB. Please let me know if this was done in the correct manner. Thanks!)
Hi, Description:
Seeking:
Question: In reviewing your .h & .cpp files, it's unclear what the state of the _temp_state variable and the debounce_timer() would be coming out of sleep and already having the button pressed, it's not clear if these two states would be properly set to do the comparisons of the button status and _debounce_timer.isExpired().
Idea: In the situation coming out of sleep, would it work to include in the ISR the following:
My skills in Arduino are still just avg and not sure how to test this idea. That is, to do this in the sketch. Attempts have resulted in errors, I think because these are identified as private class in your library.
Thanks,