- Compilation error: cannot convert 'adc_atten_t' to 'adc_attenuation_t' for argument '2' to 'void analogSetPinAttenuation(uint8_t, adc_attenuation_t)'
I'm currently working on ESP32-WROOM-32D and I'm trying to recording audio from I2S microphone with using "driver/i2s.h" library. I captured the audio. However the audio volume is extremely low. I researched many sites and I found the "analogSetPinAttenuation()" function. I implemented this function like this way:
- analogSetPinAttenuation(mic_pin_config.data_in_num, ADC_ATTEN_DB_0);
Any suggestion would be helpful.
Thanks in advance...