mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Fixed EsploraKart example.........
This commit is contained in:
parent
b32ed2d450
commit
2752b408b8
@ -102,15 +102,15 @@ void loop() {
|
||||
linked to the buttons we're handling.
|
||||
*/
|
||||
if (newState == PRESSED) {
|
||||
Keyboard.press(keystrokes[i]);
|
||||
Keyboard.press(keystrokes[thisButton]);
|
||||
}
|
||||
else if (newState == RELEASED) {
|
||||
Keyboard.release(keystrokes[i]);
|
||||
Keyboard.release(keystrokes[thisButton]);
|
||||
}
|
||||
}
|
||||
|
||||
// Store the new button state, so you can sense a difference later:
|
||||
buttonStates[i] = newState;
|
||||
buttonStates[thisButton] = newState;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user