Introduction - If you have any usage issues, please Google them yourself
Previous section talked about the framework of multi-tasking in buzzer driver, this section continue to use the way multi-task processing, are used to detect the use of separate keys cumulative primary cycles in the main function. Knowledge to teach you four points:
First point: independent key driver framework
The second point: The cumulative number of cycles to achieve the main debounce delay.
The third point: flexible use grimdeath prevent the keys from the lock button has been triggered flag.
The fourth point: the key to timing jitter delay, add an anti-jamming software monitoring judgments. Once an instant clutter found immediately to the delay counter is cleared.
This approach is summed up in my complex industrial projects. After all switch sensors used in place anti-jamming processing software can be achieved on a similar approach.
Details, see the source code to explain.
I remember the output lines P0.4 output has been low, the analog trigger buttons i