Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace debouncing code #1

Closed
wants to merge 1 commit into from
Closed

Replace debouncing code #1

wants to merge 1 commit into from

Conversation

fd0
Copy link
Owner

@fd0 fd0 commented Jul 5, 2018

The old debouncing code blocked the whole keyboard for several milliseconds when a single key was pressed, only afterwards a key press was signalled to the host.

This code changes two things:

  • On the initial edge, the key press is directly signalled to the host

  • Afterwards, that particular key is blocked for DEBOUNCE number of matrix scans, the others are read and signalled as usual

References cub-uanic#43

The old debouncing code blocked the whole keyboard for several
milliseconds when a single key was pressed, only afterwards a key press
was signalled to the host.

This code changes two things:

 * On the initial edge, the key press is directly signalled to the host

 * Afterwards, that particular key is blocked for DEBOUNCE number of
   matrix scans, the others are read and signalled as usual
@fd0 fd0 closed this Jul 5, 2018
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