We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9279035 commit 2a07681Copy full SHA for 2a07681
boards/samd11_bare/examples/adc.rs
@@ -42,7 +42,8 @@ fn main() -> ! {
42
.with_clock_cycles_per_sample(5)
43
// Overruns if clock divider < 128 in debug mode
44
.with_clock_divider(Prescaler::Div128)
45
- .enable(peripherals.adc,&mut peripherals.pm,&adc_clock)
+ .with_vref(Reference::Arefa)
46
+ .enable(peripherals.adc, &mut peripherals.pm, &adc_clock)
47
.unwrap();
48
49
let mut adc_pin = pins.d1.into_alternate();
0 commit comments