Improve Keypad reading (let the pullup some time to charge the keys before sampling)

--And improve documentation to not be dependant from external sources.
This commit is contained in:
2025-09-29 18:42:03 +02:00
parent 3c940cc6b6
commit 868d555681
7 changed files with 50 additions and 30 deletions
@@ -85,7 +85,7 @@ void Keypad::scanKeys() {
for (byte r=0; r<sizeKpd.rows; r++) {
pin_mode(rowPins[r],INPUT_PULLUP);
}
delayMicroseconds(1); // Let pins settle.
// bitMap stores ALL the keys that are being pressed.
for (byte c=0; c<sizeKpd.columns; c++) {
pin_mode(columnPins[c],OUTPUT);