Change LED Pin and flash timing

This commit is contained in:
Jakob Lechner 2025-09-23 20:19:22 +02:00
parent 8dd4913dba
commit eb4921afce

View file

@ -96,7 +96,7 @@ fn main() -> ! {
&mut pac.RESETS,
);
let mut led_pin = pins.gpio25.into_push_pull_output();
let mut led_pin = pins.gpio12.into_push_pull_output();
let mut start_time: u64 = 0;
let mut count: u64 = 0;
@ -201,10 +201,10 @@ fn main() -> ! {
(UsbDeviceState::Addressed, true) => 250_000,
(UsbDeviceState::Addressed, false) => 250_000,
// The USB device has been configured and is fully functional.
(UsbDeviceState::Configured, true) => 1_000_000,
(UsbDeviceState::Configured, false) => 0,
(UsbDeviceState::Configured, true) => 8,
(UsbDeviceState::Configured, false) => 16,
// The USB device has been suspended by the host or it has been unplugged from the USB bus.
(UsbDeviceState::Suspend, true) => 25_000,
(UsbDeviceState::Suspend, true) => 10_000,
(UsbDeviceState::Suspend, false) => 2_000_000,
};
if timer.get_counter().ticks() - start_time > interval {