Module attiny_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 = attiny_hal::Peripherals::take().unwrap();
let mut adc = attiny_hal::Adc::new(dp.ADC, Default::default());

let value = adc.read_blocking(&channel::Vbg);

Structs§