Skip to content

Conversation

P-R-O-C-H-Y
Copy link
Member

@P-R-O-C-H-Y P-R-O-C-H-Y commented Aug 4, 2023

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

@P-R-O-C-H-Y P-R-O-C-H-Y added the Area: Peripherals API Relates to peripheral's APIs. label Aug 4, 2023
@P-R-O-C-H-Y P-R-O-C-H-Y added this to the 3.0.0 milestone Aug 4, 2023
@P-R-O-C-H-Y P-R-O-C-H-Y self-assigned this Aug 4, 2023
Copy link
Member

@pedrominatel pedrominatel left a 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.

Copy link
Member

@pedrominatel pedrominatel left a 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.

@zuo785843091
Copy link

The following files are not found when compiling:
"esp_adc/adc_oneshot.h"
"esp_adc/adc_continuous.h"
"esp_adc/adc_cali_scheme.h"

@VojtechBartoska VojtechBartoska removed the request for review from PilnyTomas September 6, 2023 12:21
Copy link
Member

@lucasssvaz lucasssvaz left a 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.");
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

Copy link
Member

@pedrominatel pedrominatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@P-R-O-C-H-Y P-R-O-C-H-Y changed the base branch from esp-idf-v5.1-libs to master October 5, 2023 12:24
@P-R-O-C-H-Y P-R-O-C-H-Y changed the base branch from master to esp-idf-v5.1-libs October 5, 2023 12:25
@P-R-O-C-H-Y P-R-O-C-H-Y closed this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Peripherals API Relates to peripheral's APIs.
Projects
Development

Successfully merging this pull request may close these issues.

5 participants