]> git.donarmstrong.com Git - qmk_firmware.git/commit
Adaptive debounce logic
authorMichael Graf <michael.trunner@seitenbau.com>
Tue, 20 Nov 2018 14:55:35 +0000 (15:55 +0100)
committerMichael Graf <michael.trunner@seitenbau.com>
Tue, 20 Nov 2018 14:55:35 +0000 (15:55 +0100)
commitad91454574ad1f0fad73923d04d6d1e037e45fed
tree9a6f73f899920cef172e9ec90b0aeaf4cedc3c40
parent385de70e4d81670ea12526722b78de9521465da9
Adaptive debounce logic

The debounce filtering reports a key/switch change directly, without any extra delay. After that the debounce logic will filter all further changes, until the key/switch reports the same state for the given count of scans.
So a perfect switch will get a short debounce period and a bad key will get a much longer debounce period. The result is an adaptive debouncing period for each switch.

This value defines how often the same key/switch state has to be detected in successive reads until the next key state can be reported.
In other words this value defines the minimum debouncing period for a switch.
keyboards/ergodox_ez/config.h
keyboards/ergodox_ez/matrix.c