diff options
| author | Univa <[email protected]> | 2024-05-20 21:29:20 -0400 |
|---|---|---|
| committer | Univa <[email protected]> | 2024-05-20 21:29:20 -0400 |
| commit | 7cdbae2a5d5693a63ce55c08f39a69f2b4f0689c (patch) | |
| tree | cbe280f1ecb12d8f4e5a546f1b9244dba806155b /examples/stm32h7 | |
| parent | 51d553092550059afb22b2620cea14bbed21abff (diff) | |
add AnyAdcChannel
Diffstat (limited to 'examples/stm32h7')
| -rw-r--r-- | examples/stm32h7/src/bin/adc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/adc.rs b/examples/stm32h7/src/bin/adc.rs index 0009103d1..e9a857a74 100644 --- a/examples/stm32h7/src/bin/adc.rs +++ b/examples/stm32h7/src/bin/adc.rs | |||
| @@ -51,7 +51,7 @@ async fn main(_spawner: Spawner) { | |||
| 51 | let mut vrefint_channel = adc.enable_vrefint(); | 51 | let mut vrefint_channel = adc.enable_vrefint(); |
| 52 | 52 | ||
| 53 | loop { | 53 | loop { |
| 54 | let vrefint = adc.read_internal(&mut vrefint_channel); | 54 | let vrefint = adc.read(&mut vrefint_channel); |
| 55 | info!("vrefint: {}", vrefint); | 55 | info!("vrefint: {}", vrefint); |
| 56 | let measured = adc.read(&mut p.PC0); | 56 | let measured = adc.read(&mut p.PC0); |
| 57 | info!("measured: {}", measured); | 57 | info!("measured: {}", measured); |
