qmk_firmware/keyboards/ergodox/ez
Andrew Pritchard cd30a60d0e Change to per-key eager debouncing for ErgoDox EZ.
Empirically, waiting for N consecutive identical scans as a debouncing
strategy doesn't work very well for the ErgoDox EZ where scans are very
slow compared to most keyboards.  Instead, debounce the signals by
eagerly reporting a change as soon as one scan observes it, but then
ignoring further changes from that key for the next N scans.

This is implemented by keeping an extra matrix of uint8 countdowns, such
that only keys whose countdown is currently zero are eligible to change.
When we do observe a change, we bump that key's countdown to DEBOUNCE.
During each scan, every nonzero countdown is decremented.

With this approach to debouncing, much higher debounce constants are
tolerable, because latency does not increase with the constant, and
debounce countdowns on one key do not interfere with events on other
keys.  The only negative effect of increasing the constant is that the
minimum duration of a keypress increases.  Perhaps I'm just extremely
unlucky w.r.t. key switch quality, but I saw occasional bounces even
with DEBOUNCE=10; with 15, I've seen none so far.  That's around 47ms,
which seems like an absolutely insane amount of time for a key to be
bouncy, but at least it works.
2017-04-26 15:29:39 -07:00
..
keymaps Changing keymap name to "profet_80" 2016-09-08 23:34:55 -04:00
util
190hotfix.sh
config.h Change to per-key eager debouncing for ErgoDox EZ. 2017-04-26 15:29:39 -07:00
ez.c turn off rgb_midi in ez 2017-01-23 13:55:24 -05:00
ez.h Removing separate ergodox80 project. 2016-09-06 21:59:47 -04:00
i2cmaster.h
Makefile Flips off MIDI and API_SYSEX 2016-12-19 08:27:05 -05:00
matrix.c Change to per-key eager debouncing for ErgoDox EZ. 2017-04-26 15:29:39 -07:00
rules.mk Remove unneeded makefile include 2017-04-09 18:34:59 +03:00
twimaster.c