OVMS3-idf/examples/peripherals/adc
Darian Leung 0c9e2c0fba esp_adc_cal/Remove lookup table
This commit removes the lookup table mode due to inferior performance when compared
to linear mode under attenuation 0, 1 and 2. However small portions of the lookup table
are kept for the higher voltages of atten 3 (above ADC reading 2880). That voltage range
in atten 3 has non linear characteristics making the LUT performan better than linear mode.
2018-02-22 20:01:41 +08:00
..
main esp_adc_cal/Remove lookup table 2018-02-22 20:01:41 +08:00
Makefile add adc1 example 2017-03-20 14:46:41 +08:00
README.md More detailed description of ADC API 2017-09-11 21:00:09 +02:00

Example: ADC1

This test code shows how to configure ADC1 and read the voltage connected to GPIO pin.

ADC1 functions:

ADC1_CHANNEL_6: GPIO34, voltage range [0V..1.1V], the data range [0..4095]

Test:

Please connect the test voltage to GPIO34