Skip to main content

Module channel

Module 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);

Structs§

Gnd
Temperature
Vbg