diff options
Diffstat (limited to 'examples/src/bin')
| -rw-r--r-- | examples/src/bin/blink.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/src/bin/blink.rs b/examples/src/bin/blink.rs index d8a57c546..c36fc9421 100644 --- a/examples/src/bin/blink.rs +++ b/examples/src/bin/blink.rs | |||
| @@ -27,6 +27,8 @@ async fn main(_spawner: Spawner) { | |||
| 27 | init_ostimer0(hal::pac()); | 27 | init_ostimer0(hal::pac()); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | defmt::info!("Blink example"); | ||
| 31 | |||
| 30 | // Initialize embassy-time global driver backed by OSTIMER0 | 32 | // Initialize embassy-time global driver backed by OSTIMER0 |
| 31 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); | 33 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); |
| 32 | 34 | ||
| @@ -42,6 +44,8 @@ async fn main(_spawner: Spawner) { | |||
| 42 | // With pauses between letters and words | 44 | // With pauses between letters and words |
| 43 | 45 | ||
| 44 | loop { | 46 | loop { |
| 47 | defmt::info!("SOS"); | ||
| 48 | |||
| 45 | // S: three short blinks | 49 | // S: three short blinks |
| 46 | for _ in 0..3 { | 50 | for _ in 0..3 { |
| 47 | led.set_low(); | 51 | led.set_low(); |
