int adc_set_attenuation(adc_t line, adc_attenuation_t atten)
Set the attenuation for the ADC line.
Low-level GPIO peripheral driver interface definitions.
unsigned int adc_t
Define default ADC type identifier.
Output ADC reference voltage to GPIO25.
full-range is about 3.3 V
Low-level ADC peripheral driver interface definitions.
Attenuations that can be set for ADC lines.
full-range is about 2.2 V
full-range is about 1.5 V
full-range is about 1.1 V (Vref)