Module arduino_hal::adc::channel
source · Expand description
Additional channels
Some channels are not directly connected to pins. This module provides types which can be used to access them.
§Example
let dp = atmega_hal::Peripherals::take().unwrap();
let mut adc = atmega_hal::Adc::new(dp.ADC, Default::default());
let value = adc.read_blocking(&channel::Vbg);