aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/rp/src/bin/usb_hid_keyboard.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/rp/src/bin/usb_hid_keyboard.rs b/examples/rp/src/bin/usb_hid_keyboard.rs
index 99af1f02f..cc2090d22 100644
--- a/examples/rp/src/bin/usb_hid_keyboard.rs
+++ b/examples/rp/src/bin/usb_hid_keyboard.rs
@@ -78,6 +78,9 @@ async fn main(_spawner: Spawner) {
78 // Set up the signal pin that will be used to trigger the keyboard. 78 // Set up the signal pin that will be used to trigger the keyboard.
79 let mut signal_pin = Input::new(p.PIN_16, Pull::None); 79 let mut signal_pin = Input::new(p.PIN_16, Pull::None);
80 80
81 // Enable the schmitt trigger to slightly debounce.
82 signal_pin.set_schmitt(true);
83
81 let (reader, mut writer) = hid.split(); 84 let (reader, mut writer) = hid.split();
82 85
83 // Do stuff with the class! 86 // Do stuff with the class!