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:
| Channel | ADC1 | ADC2 |
|---|---|---|
| 0 | GPIO36 (SENSOR_VP) | GPIO4 |
| 1 | GPIO37 (SENSOR_CAPP) | GPIO0 |
| 2 | GPIO38 (SENSOR_CAPN) | GPIO2 |
| 3 | GPIO39 (SENSOR_VN) | GPIO15 (MTDO) |
| 4 | GPIO33 (32K_XP) | GPIO13 (MTCK) |
| 5 | GPIO32 (32K_XN) | GPIO12 (MTDI) |
| 6 | GPIO34 (VDET_1) | GPIO14 (MTMS) |
| 7 | GPIO35 (VDET_2) | GPIO27 |
| 8 | GPIO25 | |
| 9 | GPIO26 |
Structs
Enums
- The sampling/readout resolution of the ADC