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:
1 parent
3c940cc6b6
commit
868d555681
7 files changed
+50
-30
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user