Set blink pin to midi tx

This commit is contained in:
Geens 2025-06-13 14:54:03 +02:00
parent 85984963f4
commit d5665b841c
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
target = "thumbv6m-none-eabi"
[target.thumbv6m-none-eabi]
runner = "probe-rs run --chip STM32F042C4T6"
runner = "probe-rs run --chip STM32F042C4Tx"
rustflags = [
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=--nmagic",

View File

@ -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);
}
}