Skip to content

Fix issue #56 by increasing debounce time to 20 ms - #57

Open
sruggier wants to merge 1 commit into
FrameworkComputer:fl16-2026-f9from
sruggier:pr/fix-issue-56-debounce-time
Open

Fix issue #56 by increasing debounce time to 20 ms#57
sruggier wants to merge 1 commit into
FrameworkComputer:fl16-2026-f9from
sruggier:pr/fix-issue-56-debounce-time

Conversation

@sruggier

@sruggier sruggier commented Sep 2, 2026

Copy link
Copy Markdown

On my own ANSI keyboard module (a rigorously chosen sample size of 1) this is necessary for the keyboard to work correctly. Otherwise, I frequently see duplicate key down events.

I also tried 10 ms, and it was much better with that configuration, but I was still seeing the occasional bounce, so I doubled it to 20.

I wasn't sure whether to apply this to the four keyboard modules only, or to include the numpad and macropad as well, but I chose to start with all of them, because the consequences of the debounce time being too low are much worse than if it's set more conservatively than it needs to be. It would be nice if the debounce time were dynamically configurable without having to flash new firmware, but unless/until that happens, I think this is a safer default value.

On my own ANSI keyboard module (a rigorously chosen sample size of 1)
this is necessary for the keyboard to work correctly. Otherwise, I
frequently see duplicate key down events.

I also tried 10 ms, and it was much better with that configuration, but
I was still seeing the occasional bounce, so I doubled it to 20.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant