diff options
Diffstat (limited to 'docs/modules/ROOT/examples/layer-by-layer/blinky-hal')
| -rw-r--r-- | docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs b/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs index d0c9f4907..54b87662e 100644 --- a/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs +++ b/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs | |||
| @@ -9,7 +9,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 9 | fn main() -> ! { | 9 | fn main() -> ! { |
| 10 | let p = embassy_stm32::init(Default::default()); | 10 | let p = embassy_stm32::init(Default::default()); |
| 11 | let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh); | 11 | let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh); |
| 12 | let button = Input::new(p.PC13, Pull::Up); | 12 | let mut button = Input::new(p.PC13, Pull::Up); |
| 13 | 13 | ||
| 14 | loop { | 14 | loop { |
| 15 | if button.is_low() { | 15 | if button.is_low() { |
