Add device protocol

This commit is contained in:
hodasemi 2023-04-06 19:10:12 +02:00
parent 3e126c9acc
commit 74bd08c9e8
2 changed files with 6 additions and 4 deletions

View file

@ -71,7 +71,7 @@ fn main() -> ! {
USB_HID = Some(HIDClass::new(
USB_BUS.as_ref().unwrap(),
MouseReport::desc(),
10,
60,
));
}
@ -81,6 +81,8 @@ fn main() -> ! {
.manufacturer("Logitech")
.product("Marathon Mouse/Performance Plus M705")
.serial_number("B14D65DA")
.device_class(0)
.device_protocol(2)
.build(),
);
}
@ -90,8 +92,8 @@ fn main() -> ! {
}
let mut delay = Delay::new(core.SYST, clocks.system_clock.freq().to_Hz());
const PIXEL: i8 = 2;
const WAIT_TIME: u32 = 10000;
const PIXEL: i8 = 100;
const WAIT_TIME: u32 = 1000;
loop {
mouse_move(&mut delay, WAIT_TIME, PIXEL);