Set blink pin to midi tx
This commit is contained in:
@@ -31,15 +31,15 @@ fn main() -> ! {
|
||||
|
||||
// Configure PA5 as push-pull output (common LED pin)
|
||||
let mut led = cortex_m::interrupt::free(|cs| {
|
||||
gpioa.pa5.into_push_pull_output(cs)
|
||||
gpioa.pa9.into_push_pull_output(cs)
|
||||
});
|
||||
|
||||
// Blink loop
|
||||
loop {
|
||||
led.set_high().ok();
|
||||
delay.delay_ms(500u16);
|
||||
delay.delay_ms(2000u16);
|
||||
|
||||
led.set_low().ok();
|
||||
delay.delay_ms(500u16);
|
||||
delay.delay_ms(2000u16);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user