From 4fff66801d737a9a8955dbb7b87a0a46163855a2 Mon Sep 17 00:00:00 2001 From: Djair Guilherme Date: Fri, 17 Apr 2026 09:14:46 -0300 Subject: [PATCH] Add settling time delay for RP2040 support Added a delay for settling time specific to RP2040 architecture. --- src/Keypad.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Keypad.cpp b/src/Keypad.cpp index f146a6d..9c69a96 100644 --- a/src/Keypad.cpp +++ b/src/Keypad.cpp @@ -86,6 +86,12 @@ void Keypad::scanKeys() { pin_mode(rowPins[r],INPUT_PULLUP); } + // --- NEW FIX FOR RP2040 --- + #if defined(ARDUINO_ARCH_RP2040) + delayMicroseconds(20); // Settling time for high-speed RP2040 IO + #endif + // -------------------------- + // bitMap stores ALL the keys that are being pressed. for (byte c=0; c