Toggle LED instead of swapping.
This commit is contained in:
parent
d82ca6c478
commit
f06a0a467d
1 changed files with 2 additions and 4 deletions
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue