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

Prevent ghost keys #24

Closed
jackpot51 opened this issue Feb 21, 2020 · 2 comments · Fixed by #40
Closed

Prevent ghost keys #24

jackpot51 opened this issue Feb 21, 2020 · 2 comments · Fixed by #40
Assignees

Comments

@jackpot51
Copy link
Member

Detect and prevent ghost keypresses

@jackpot51 jackpot51 self-assigned this Feb 24, 2020
@jackpot51
Copy link
Member Author

jackpot51 commented Mar 24, 2020

ghosting

In this diagram, SW00, SW01, and SW10 are closed. SW11 is open. Without diodes, current can flow:

  • From C1 through SW01 to R0
  • From R0 through SW00 to C0
  • From C0 through SW10 to R1

This makes it appear as though R1 and C1 are connected, which would make SW11 be detected as closed.

@jackpot51
Copy link
Member Author

When a keypress happens, the EC should check if the keypress connects 2 inputs and 2 rows with 3 switches. Any time this happens, the fourth switch would invalidly register at the same time.

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 a pull request may close this issue.

1 participant