add debug for keys

change threshold for keys
main
JbLb 3 years ago
parent a3190012a9
commit 5bb0992bcc

@ -25,6 +25,7 @@ if (!cap.begin(0x5A)) {
while (1);
}
Serial.println("MPR121 found!");
cap.setThresholds (8,4);
}

@ -168,6 +168,8 @@ void loop() {
int buttonId = getPressedButton();
char button = 0;
if (buttonId >= 0) {
Serial.print(F("buttonId : "));
Serial.println(buttonId);
button = buttonsMap[buttonId];
if (button != 0) {
actionButtonForScreen(button);

Loading…
Cancel
Save