From eb4921afce00157960df0b52183188c04f281ae1 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Tue, 23 Sep 2025 20:19:22 +0200 Subject: [PATCH] Change LED Pin and flash timing --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5230f7c..25bd191 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {