stm32: Update gpio examples

This commit is contained in:
Thales Fragoso
2021-06-25 17:32:24 -03:00
parent a3f0aa02a4
commit 0eaadfc125
12 changed files with 37 additions and 39 deletions

View File

@ -8,7 +8,7 @@
#[path = "../example_common.rs"]
mod example_common;
use embassy_stm32::gpio::{Level, Output};
use embassy_stm32::gpio::{Level, Output, Speed};
use embedded_hal::digital::v2::OutputPin;
use example_common::*;
@ -28,7 +28,7 @@ fn main() -> ! {
let p = embassy_stm32::init(Default::default());
let mut led = Output::new(p.PB0, Level::High);
let mut led = Output::new(p.PB0, Level::High, Speed::Low);
loop {
info!("high");