stm32 adc: introduce blocking_read
This commit is contained in:
@@ -23,7 +23,7 @@ fn main() -> ! {
|
||||
let mut channel = p.PC0;
|
||||
|
||||
loop {
|
||||
let v = adc.read(&mut channel);
|
||||
let v = adc.blocking_read(&mut channel);
|
||||
info!("--> {}", v);
|
||||
embassy_time::block_for(Duration::from_millis(200));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user