1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fixed EsploraKart example.........

This commit is contained in:
Cristian Maglie
2012-12-07 18:49:05 +01:00
parent b32ed2d450
commit 2752b408b8

View File

@ -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;
}
/*