A simple no-std input debouncer to detect rising and falling edges with minimal RAM requirements.
Debouncing and Testing for Signals and Buttons
A batteries-included embedded-hal InputPin debouncer.