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

Upper Key Limit? #51

Open
degroof opened this issue Aug 2, 2024 · 3 comments
Open

Upper Key Limit? #51

degroof opened this issue Aug 2, 2024 · 3 comments

Comments

@degroof
Copy link

degroof commented Aug 2, 2024

Not submitting as a bug (I've already written a workaround). Just curious...

I ran into an issue where the keypad library was working fine for a 6×10 matrix (i.e. 6 rows, 10 columns) but started giving phantom key codes for a 5×15 matrix. The symptoms were as follows:

  • I would press a key and get a keypress event for that key.
  • This would be immediately followed by 2 keypress events for a completely different key.

From what I can tell, this appeared to be due to something akin to a buffer overflow issue.

Is it possible there's an upper limit on the number of keys the library can scan? It seemed like the limit was somewhere between 60 and 75. I'm guessing 64.

Hardware: Adafruit Feather M0 Bluefruit LE (ATSAMD21G18).

@deHarro
Copy link

deHarro commented Jan 13, 2025

Hello @degroof !
Can you please elaborate upon your workaround?
I'm on implementing a 128 key matrix as control panel for turnouts at my model railroad.
Thanks!
Harald

@degroof
Copy link
Author

degroof commented Jan 13, 2025

I ended up writing my own scanner. Arduino source code is available here: https://www.printables.com/model/960905-bluetooth-membrane-keyboard-65-style/files

@deHarro
Copy link

deHarro commented Jan 13, 2025

Thanks for the fast response!
I'll try to dig into, but I think, it's over engineered for my application.
I have to detect switch states (not dynamically keys as at a keyboard for typing).
There are other comments on this library stating that increasing MAPSIZE would do the trick. I'll try that first.
Thanks anyway!

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

No branches or pull requests

2 participants