Expand description

Analog to digital (ADC) conversion support.

This module provides functions for reading analog values from two analog to digital converters available on the ESP32: ADC1 and ADC2.

The following pins can be configured for analog readout:

ChannelADC1ADC2
0GPIO36 (SENSOR_VP)GPIO4
1GPIO37 (SENSOR_CAPP)GPIO0
2GPIO38 (SENSOR_CAPN)GPIO2
3GPIO39 (SENSOR_VN)GPIO15 (MTDO)
4GPIO33 (32K_XP)GPIO13 (MTCK)
5GPIO32 (32K_XN)GPIO12 (MTDI)
6GPIO34 (VDET_1)GPIO14 (MTMS)
7GPIO35 (VDET_2)GPIO27
8GPIO25
9GPIO26

Structs

Enums

The sampling/readout resolution of the ADC

Traits