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 8c48e79f1..d8b158d50 100644 --- a/examples/src/bin/blink.rs +++ b/examples/src/bin/blink.rs | |||
| @@ -26,6 +26,8 @@ async fn main(_spawner: Spawner) { | |||
| 26 | init_led_gpio_clocks(hal::pac()); | 26 | init_led_gpio_clocks(hal::pac()); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | defmt::info!("Blink example"); | ||
| 30 | |||
| 29 | // Initialize embassy-time global driver backed by OSTIMER0 | 31 | // Initialize embassy-time global driver backed by OSTIMER0 |
| 30 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); | 32 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); |
| 31 | 33 | ||
| @@ -41,6 +43,8 @@ async fn main(_spawner: Spawner) { | |||
| 41 | // With pauses between letters and words | 43 | // With pauses between letters and words |
| 42 | 44 | ||
| 43 | loop { | 45 | loop { |
| 46 | defmt::info!("SOS"); | ||
| 47 | |||
| 44 | // S: three short blinks | 48 | // S: three short blinks |
| 45 | for _ in 0..3 { | 49 | for _ in 0..3 { |
| 46 | led.set_low(); | 50 | led.set_low(); |
