stm32 adc: introduce blocking_read

This commit is contained in:
Andres Vahter
2024-07-03 14:39:10 +03:00
parent 914d7c7919
commit f851081e09
17 changed files with 86 additions and 38 deletions

View File

@@ -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));
}