Skip to content

Commit

Permalink
Allow time for signals to settle
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Jun 18, 2023
1 parent 6a2b87a commit 1c6fa24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Keypad.cpp
Expand Up @@ -90,6 +90,7 @@ void Keypad::scanKeys() {
for (byte c=0; c<sizeKpd.columns; c++) {
pin_mode(columnPins[c],OUTPUT);
pin_write(columnPins[c], LOW); // Begin column pulse output.
delayMicroseconds(10); // Allow time for signals to settle
for (byte r=0; r<sizeKpd.rows; r++) {
bitWrite(bitMap[r], c, !pin_read(rowPins[r])); // keypress is active low so invert to high.
}
Expand Down

0 comments on commit 1c6fa24

Please sign in to comment.