diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/usb_hid_mouse.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/rp/src/bin/usb_hid_mouse.rs b/examples/rp/src/bin/usb_hid_mouse.rs index cce344fb0..5ee650910 100644 --- a/examples/rp/src/bin/usb_hid_mouse.rs +++ b/examples/rp/src/bin/usb_hid_mouse.rs | |||
| @@ -8,7 +8,6 @@ use embassy_executor::Spawner; | |||
| 8 | use embassy_futures::join::join; | 8 | use embassy_futures::join::join; |
| 9 | use embassy_rp::bind_interrupts; | 9 | use embassy_rp::bind_interrupts; |
| 10 | use embassy_rp::clocks::RoscRng; | 10 | use embassy_rp::clocks::RoscRng; |
| 11 | use embassy_rp::gpio::{Input, Pull}; | ||
| 12 | use embassy_rp::peripherals::USB; | 11 | use embassy_rp::peripherals::USB; |
| 13 | use embassy_rp::usb::{Driver, InterruptHandler}; | 12 | use embassy_rp::usb::{Driver, InterruptHandler}; |
| 14 | use embassy_time::Timer; | 13 | use embassy_time::Timer; |
| @@ -75,12 +74,6 @@ async fn main(_spawner: Spawner) { | |||
| 75 | // Run the USB device. | 74 | // Run the USB device. |
| 76 | let usb_fut = usb.run(); | 75 | let usb_fut = usb.run(); |
| 77 | 76 | ||
| 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); | ||
| 80 | |||
| 81 | // Enable the schmitt trigger to slightly debounce. | ||
| 82 | signal_pin.set_schmitt(true); | ||
| 83 | |||
| 84 | let (reader, mut writer) = hid.split(); | 77 | let (reader, mut writer) = hid.split(); |
| 85 | 78 | ||
| 86 | // Do stuff with the class! | 79 | // Do stuff with the class! |
