Firmware · GPIO in practice
A debouncer is only as good as the bounce it was tuned against, so measure the switch first and then set T and N.