Skip to content

Commit

Permalink
Add log lines and use delay_ms instead of delay_ns
Browse files Browse the repository at this point in the history
  • Loading branch information
astapleton committed Nov 7, 2024
1 parent 549d8b1 commit baa91b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ fn main() -> ! {

loop {
dp.GPIOA.odr().write(|w| w.od5().low());
delay.delay_ns(duration);
delay.delay_ms(duration);
log::info!("Off");
dp.GPIOA.odr().write(|w| w.od5().high());
delay.delay_ns(duration);
delay.delay_ms(duration);
log::info!("On");
}
}

0 comments on commit baa91b5

Please sign in to comment.