diff options
| author | Thales Fragoso <[email protected]> | 2021-06-25 17:32:24 -0300 |
|---|---|---|
| committer | Thales Fragoso <[email protected]> | 2021-06-25 18:16:43 -0300 |
| commit | 0eaadfc1253285c04340e32f14efa1133cb30dbe (patch) | |
| tree | b84c3ac128e1126f9b9c4a7b31f236b46ed8f172 /examples/stm32wb55 | |
| parent | a3f0aa02a4cf12df9ce7b7bda02a56b74bf028ab (diff) | |
stm32: Update gpio examples
Diffstat (limited to 'examples/stm32wb55')
| -rw-r--r-- | examples/stm32wb55/src/bin/blinky.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32wb55/src/bin/blinky.rs b/examples/stm32wb55/src/bin/blinky.rs index 8ce78a3c3..d53ad611a 100644 --- a/examples/stm32wb55/src/bin/blinky.rs +++ b/examples/stm32wb55/src/bin/blinky.rs | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #[path = "../example_common.rs"] | 9 | #[path = "../example_common.rs"] |
| 10 | mod example_common; | 10 | mod example_common; |
| 11 | use embassy_stm32::gpio::{Level, Output}; | 11 | use embassy_stm32::gpio::{Level, Output, Speed}; |
| 12 | use embedded_hal::digital::v2::OutputPin; | 12 | use embedded_hal::digital::v2::OutputPin; |
| 13 | use example_common::*; | 13 | use example_common::*; |
| 14 | 14 | ||
| @@ -28,7 +28,7 @@ fn main() -> ! { | |||
| 28 | 28 | ||
| 29 | let p = embassy_stm32::init(Default::default()); | 29 | let p = embassy_stm32::init(Default::default()); |
| 30 | 30 | ||
| 31 | let mut led = Output::new(p.PB0, Level::High); | 31 | let mut led = Output::new(p.PB0, Level::High, Speed::Low); |
| 32 | 32 | ||
| 33 | loop { | 33 | loop { |
| 34 | info!("high"); | 34 | info!("high"); |
