Better keypad scanning and reboot with *****
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user