Noticed that I was still getting some key chatter intermittently during intense bursts of typing (130wpm+). Which was rare but still still resulted in stuck keys.
To fix the issue:
- Decreased the delay from 7ms -> 4ms per loop.
- Increased the Debouncing loop count from 2 -> 3
Resulting in a delay per key event of...
1 + 4 + 1 + 4 = 10ms
Where previously it was...
1 + 7 = 8ms
The decrease in delay inevitably means we'll see higher power consumption but since I'm running on 6 months without a charge (4,400mA LiPo), losing a few months for more consistent performance doesn't seem like a big deal.
Estimated increase in power consumption
1/4 = 0.25, where previously it was 1/8 = 0.125 -> 2x more power consumption.
3+ months of heavy usage is fine, considering I have to charge my mouse (MX Ergo) every 2 weeks!