change threshold for keys
@ -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);