S
S
Shorek2021-12-26 18:08:50
Arduino
Shorek, 2021-12-26 18:08:50

How to check if a key is pressed on a keyboard connected to Arduino?

You need to check the key hold on the Arduino matrix keyboard.
If the key is pressed, some action is performed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kalapanga, 2021-12-26
@kalapanga

What is "clamping" - this means that the key is pressed and not released for a certain time. This is what needs to be checked. When a press is detected, flag "key pressed" and remember the time. On subsequent checks of the keyboard status, do the following. If the key is released, then reset the flag. If the key is still pressed, then check if the specified time has passed. And either perform the action or wait further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question