Better keypad scanning and reboot with *****

This commit is contained in:
2026-01-02 20:37:25 +01:00
parent 1d35684c53
commit 9a193e837f
3 changed files with 9 additions and 7 deletions
@@ -40,7 +40,7 @@ Keypad::Keypad(char *userKeymap, byte *row, byte *col, byte numRows, byte numCol
begin(userKeymap);
setDebounceTime(10);
setDebounceTime(15);
setHoldTime(500);
keypadEventListener = 0;
@@ -86,7 +86,7 @@ void Keypad::scanKeys() {
pin_mode(rowPins[r],OUTPUT);
pin_write(rowPins[r],HIGH);
}
delayMicroseconds(3); // Let pins settle.
delayMicroseconds(1000); // Let pins settle.
for (byte r=0; r<sizeKpd.rows; r++) {
pin_mode(rowPins[r],INPUT_PULLUP);
}