-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analog Continuous mode API #8490
Analog Continuous mode API #8490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one point so far, @P-R-O-C-H-Y.
libraries/ESP32/examples/AnalogReadContinuous/AnalogReadContinuous.ino
Outdated
Show resolved
Hide resolved
libraries/ESP32/examples/AnalogReadContinuous/AnalogReadContinuous.ino
Outdated
Show resolved
Hide resolved
libraries/ESP32/examples/AnalogReadContinuous/AnalogReadContinuous.ino
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor improvements.
The following files are not found when compiling: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on ESP32. Works as expected.
Just a suggestion to add a newline at the end of the .INO so the file is a valid text/source file in POSIX systems.
Serial.println("Error occured during reading data. Set Core Debug Level to error or lower for more informations."); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of Change
Added new API for running ADC peripheral in continuous mode, which enables ADC conversions to be non-blocking.
Updated documentation with new API + Added new example AnalogReadContinuous to demonstrate the usage.
Tests scenarios
Tested on all supported chips.
Related links
Related to #5205