|
FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
|
| bool ADC1_configure | ( | gpio_num_t | gpio, |
| int | bitWidth, | ||
| int | attenuation ) |
Configures an ADC1 channel (uses the ESP-IDF "oneshot" ADC driver).
| gpio | GPIO connected to ADC1 (GPIO32...GPIO39) |
| bitWidth | Resolution in bits (9...12) |
| attenuation | 0 = 0dB, 1 = 2.5dB, 2 = 6dB, 3 = 12dB |
Definition at line 209 of file fabutils.cpp.