ESP32_Scope/ESP32_Oscilloscope/adc.ino

9 lines
189 B
Arduino
Raw Normal View History

2022-06-27 16:32:01 +02:00
void characterize_adc() {
esp_adc_cal_characterize(
(adc_unit_t)ADC_UNIT_1,
(adc_atten_t)ADC_CHANNEL,
(adc_bits_width_t)ADC_WIDTH_BIT_12,
1100,
&adc_chars);
}