Skip to content

Commit ead44e6

Browse files
committed
Add log lines and use delay_ms instead of delay_ns
1 parent 08c74f7 commit ead44e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/blinky.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ fn main() -> ! {
3232

3333
loop {
3434
dp.GPIOA.odr().write(|w| w.od5().low());
35-
delay.delay_ns(duration);
35+
delay.delay_ms(duration);
36+
log::info!("Off");
3637
dp.GPIOA.odr().write(|w| w.od5().high());
37-
delay.delay_ns(duration);
38+
delay.delay_ms(duration);
39+
log::info!("On");
3840
}
3941
}

0 commit comments

Comments
 (0)