Toggle LED instead of swapping.

This commit is contained in:
Lorenzo Good 2026-06-16 12:35:20 -04:00
parent d82ca6c478
commit f06a0a467d
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0

View file

@ -35,9 +35,7 @@ fn main() -> ! {
let mut timer = Delay::new(cp.SYST, clocks); let mut timer = Delay::new(cp.SYST, clocks);
loop { loop {
timer.delay_ms(1000_u32); timer.delay_ms(2000_u32);
led_pin.set_high(); led_pin.toggle();
timer.delay_ms(1000_u32);
led_pin.set_low();
} }
} }