Merge pull request #3288 from jbowes/chore/remove-rp-pins-from-mouse-example

chore: Remove unused keyboard code from rp mouse example
This commit is contained in:
Dario Nieuwenhuis 2024-08-26 15:00:34 +00:00 committed by GitHub
commit a7bfec2467
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,6 @@ use embassy_executor::Spawner;
use embassy_futures::join::join; use embassy_futures::join::join;
use embassy_rp::bind_interrupts; use embassy_rp::bind_interrupts;
use embassy_rp::clocks::RoscRng; use embassy_rp::clocks::RoscRng;
use embassy_rp::gpio::{Input, Pull};
use embassy_rp::peripherals::USB; use embassy_rp::peripherals::USB;
use embassy_rp::usb::{Driver, InterruptHandler}; use embassy_rp::usb::{Driver, InterruptHandler};
use embassy_time::Timer; use embassy_time::Timer;
@ -75,12 +74,6 @@ async fn main(_spawner: Spawner) {
// Run the USB device. // Run the USB device.
let usb_fut = usb.run(); let usb_fut = usb.run();
// Set up the signal pin that will be used to trigger the keyboard.
let mut signal_pin = Input::new(p.PIN_16, Pull::None);
// Enable the schmitt trigger to slightly debounce.
signal_pin.set_schmitt(true);
let (reader, mut writer) = hid.split(); let (reader, mut writer) = hid.split();
// Do stuff with the class! // Do stuff with the class!