diff --git a/src/my_buttons.cpp b/src/my_buttons.cpp index aecb180..e8a1008 100644 --- a/src/my_buttons.cpp +++ b/src/my_buttons.cpp @@ -25,6 +25,7 @@ if (!cap.begin(0x5A)) { while (1); } Serial.println("MPR121 found!"); + cap.setThresholds (8,4); } diff --git a/src/oorobot.ino b/src/oorobot.ino index 841a4a7..2df3942 100644 --- a/src/oorobot.ino +++ b/src/oorobot.ino @@ -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);