diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-08-26 15:00:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-26 15:00:34 +0000 |
| commit | a7bfec2467b2fbb9623fb7713ca8f1cca5e78f56 (patch) | |
| tree | 137edb609f99fbadf31b1108ab1feec10659c3e5 /examples | |
| parent | 86ca664655b6f7977da09aeb251663ac88200d41 (diff) | |
| parent | d4ab9fc247731e5f8ede4bb60a8c3c63136e1e6d (diff) | |
Merge pull request #3288 from jbowes/chore/remove-rp-pins-from-mouse-example
chore: Remove unused keyboard code from rp mouse example
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! |
