T-n-T: Protection against chattering
The problem
Protection against false / accidental tripping at the controller inputs is required, i.e. incorrect detection of receiving an input signal (Protection against loose contacts).
The solution
The algorithm filters out the appearance of signals at the input with a duration less than the set (200ms), and also does not respond to signal disappearance for less than a set time (200ms), thus determining a clear appearance or disappearance of the input signal.
The solution is most relevant for controllers without built-in anti-bounce protection, in particular, for CANNY 5 nano controllers.
TODO:TRANSLATE