I have a small problem. I connected VCC with GPIO 39 to check the VCC of the battery. However I always get 4095 as result, independent of the VCC of the battery.
I use following code:
Code: Select all
adc1_config_width(ADC_WIDTH_12Bit);
adc1_config_channel_atten(ADC1_CHANNEL_3,ADC_ATTEN_11db);
int val = adc1_get_voltage(ADC1_CHANNEL_3);
The espressif specification says that GPIO39 can me used for ADC, as I understood it.
Many thanks.
Best Regards