From 333c92c3e0462eaf0f2f82df944219b8f3009c26 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 13 Jul 2026 21:26:54 -0500 Subject: [PATCH] keyboard: use schmitt triggers instead of software debounce --- src/keyboard.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/keyboard.rs b/src/keyboard.rs index c30471d..9fbced5 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -3,7 +3,6 @@ use defmt::*; use embassy_rp::gpio::Input; use embassy_sync::blocking_mutex::raw::RawMutex; use embassy_sync::channel::Sender; -use embassy_time::{Duration, Timer}; pub struct Key<'a> { button: Input<'a>, @@ -28,9 +27,6 @@ impl Key<'_> { }) .await; - // Debounce - Timer::after(Duration::from_millis(50)).await; - self.button.wait_for_low().await; info!("Button {} unpressed", self.value); @@ -40,9 +36,6 @@ impl Key<'_> { action: KeyboardAction::Depress, }) .await; - - // Debounce - Timer::after(Duration::from_millis(50)).await; } } }