aboutsummaryrefslogtreecommitdiff
path: root/examples/rp
diff options
context:
space:
mode:
authorJames Bowes <[email protected]>2024-08-26 10:33:13 -0300
committerJames Bowes <[email protected]>2024-08-26 10:56:41 -0300
commitd4ab9fc247731e5f8ede4bb60a8c3c63136e1e6d (patch)
tree137edb609f99fbadf31b1108ab1feec10659c3e5 /examples/rp
parent86ca664655b6f7977da09aeb251663ac88200d41 (diff)
chore: Remove unused keyboard code from rp mouse example
The usb mouse example included code copied from the keyboard example to set up a button, which is not used in the mouse example. Remove it, to make the example clearer.
Diffstat (limited to 'examples/rp')
-rw-r--r--examples/rp/src/bin/usb_hid_mouse.rs7
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;
8use embassy_futures::join::join; 8use embassy_futures::join::join;
9use embassy_rp::bind_interrupts; 9use embassy_rp::bind_interrupts;
10use embassy_rp::clocks::RoscRng; 10use embassy_rp::clocks::RoscRng;
11use embassy_rp::gpio::{Input, Pull};
12use embassy_rp::peripherals::USB; 11use embassy_rp::peripherals::USB;
13use embassy_rp::usb::{Driver, InterruptHandler}; 12use embassy_rp::usb::{Driver, InterruptHandler};
14use embassy_time::Timer; 13use 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!