Search found 1 match
- Mon Dec 04, 2023 6:12 pm
- Forum: ESP-IDF
- Topic: Read ADC voltage in wake stub
- Replies: 7
- Views: 6692
Re: Read ADC voltage in wake stub
Hi all, I figured it out and would like to share the code in case anyone else has a similar problem. The following function can run in the wake stub, turns on ADC and measures the voltage of a certain channel of AD1 (result will be stored in adcValue) and then turns off ADC again: RTC_DATA_ATTR uin...