SRA-VJTI / sra-board-component

ESP-IDF component for SRA Board
https://sravjti.in/sra-board-component/
MIT License
36 stars 20 forks source link

Updated ADC Implementation to support ESP-IDF 5.0 #89

Closed SuperChamp234 closed 8 months ago

SuperChamp234 commented 8 months ago

I am issuing this PR to update our ADC Implementation for ESP-IDF 5.0.

As per pull request #87 , I have rewritten the ADC implementation to use methods from the new ESP-IDF 5.0 library.

It makes use of the esp_adc component instead of the depreciated esp_adc_cal.

The new ADC methods require the use of an adc_handle_t when trying to access the ADC object and perform actions.

Please review and let me know the changes, thank you.

SuperChamp234 commented 8 months ago

Hi @RISHI27-dot , I have made the changes as requested, please review.