keyPressed interpreted as multiple taps
in
Programming Questions
•
1 year ago
Hello!
I am currentlyworking on a program to controll my arduino via bluetooth. And I've stumbled in to a problem. When I want to use a key on the keyboard as a switch one tap is interpreted as multiple taps. How does one make it read as only one?
Here is the relevant code for reference:
- if (keyPressed == true) {
- if (key == '1') {
- ... do shit ...
- }
- }
1