FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
Loading...
Searching...
No Matches

◆ ADC1_configure()

bool ADC1_configure ( gpio_num_t gpio,
int bitWidth,
int attenuation )

Configures an ADC1 channel (uses the ESP-IDF "oneshot" ADC driver).

Parameters
gpioGPIO connected to ADC1 (GPIO32...GPIO39)
bitWidthResolution in bits (9...12)
attenuation0 = 0dB, 1 = 2.5dB, 2 = 6dB, 3 = 12dB
Returns
True on success

Definition at line 209 of file fabutils.cpp.