Skip to content

ADC esp32s2 attenuation fix for DAC pins #6282

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

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

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

Summary

Changed fixed DAC pins which are different for ESP32S2 to predefined DAC pins from SOC.

Impact

None.

Related links

@P-R-O-C-H-Y P-R-O-C-H-Y self-assigned this Feb 14, 2022
@VojtechBartoska VojtechBartoska added the Area: Peripherals API Relates to peripheral's APIs. label Feb 14, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.3 milestone Feb 14, 2022
@Jason2866
Copy link
Collaborator

Working with S3 too?

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

Working with S3 too?

S3 does not support DAC.

@Jason2866
Copy link
Collaborator

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

The S3 has 20 ADC channels working, but no DAC channel ;)

@@ -142,9 +144,9 @@ bool __adcAttachPin(uint8_t pin){
#endif
}
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
Copy link
Member

Choose a reason for hiding this comment

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

while here, let's use the SOC defines te test wether DAC is supported and maybe how many channels

Copy link
Member Author

Choose a reason for hiding this comment

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

SOC define used now.
According to how many channels there are always 2 channels when supported.

Copy link
Member

Choose a reason for hiding this comment

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

It's not given that this will be true in the future. Why not have more?

@me-no-dev me-no-dev merged commit 01303b7 into espressif:master Feb 16, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y deleted the ADC_esp32s2-fix branch April 19, 2023 11:31
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.

4 participants