OVMS3-idf/examples/peripherals/adc
Wangjialin 2fceec4d85 feature(I2S-ADC): add ADC mode for I2S.
1. Support built-in ADC for I2S.
2. Modify code of ADC, made no change to the original APIs.
3. Add APIs in I2S:
esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel);
4. Add I2S ADC/DAC example code.
5. add old-fashion definition to make it more compatible
6. replase spi_flash_ APIs with esp_partition_ APIs
7. add example of generating audio table from wav
8. change example sound
2017-09-14 13:24:08 +08:00
..
main feature(I2S-ADC): add ADC mode for I2S. 2017-09-14 13:24:08 +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