jasonkaler
Distinguished
Daniel, while your SPST debouncing algorithm works, it does add some latency.
I would poll the input and accept a state change immediately, and then ignore any changes for the next few cycles.
I would poll the input and accept a state change immediately, and then ignore any changes for the next few cycles.