stm32: Update gpio examples
This commit is contained in:
@@ -9,7 +9,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::*;
|
||||
|
||||
@@ -58,7 +58,7 @@ fn main() -> ! {
|
||||
Config::default(),
|
||||
);
|
||||
|
||||
let mut cs = Output::new(p.PE0, Level::High);
|
||||
let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh);
|
||||
|
||||
loop {
|
||||
let mut buf = [0x0A; 4];
|
||||
|
||||
Reference in New Issue
Block a user