We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32ed2d commit 2752b40Copy full SHA for 2752b40
libraries/Esplora/examples/EsploraKart/EsploraKart.ino
@@ -102,15 +102,15 @@ void loop() {
102
linked to the buttons we're handling.
103
*/
104
if (newState == PRESSED) {
105
- Keyboard.press(keystrokes[i]);
+ Keyboard.press(keystrokes[thisButton]);
106
}
107
else if (newState == RELEASED) {
108
- Keyboard.release(keystrokes[i]);
+ Keyboard.release(keystrokes[thisButton]);
109
110
111
112
// Store the new button state, so you can sense a difference later:
113
- buttonStates[i] = newState;
+ buttonStates[thisButton] = newState;
114
115
116
/*
0 commit comments