Skip to content
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

Added basic Espressif PDM microphone support #7454 #9828

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

JetForMe
Copy link

This PR adds basic PDM microphone support to the Espressif port. Only the most basic functionality has been tested: 16-bit, monophonic input seems to generate appropriate data when viewed in the Arduino plotter.

Support required adding implementations in ports/espressif/common-hal/audiobusio/PDMIn.[c|h], as well as a change to shared-bindings/audiobusio/PDMIn.c to allow for clean deinit of underlying ESP-IDF objects.

This PR is not intended to be complete, I just wanted to get it in front of more people to get feedback.

@dhalbert dhalbert marked this pull request as draft November 25, 2024 04:14
@tannewt
Copy link
Member

tannewt commented Nov 26, 2024

Code looks reasonable to me. I say keep going. :-) Thanks!

@JetForMe
Copy link
Author

JetForMe commented Nov 28, 2024

I think the CI failures are due to the code being compiled for boards that don't support it. I may be missing some guard macros. I'll take a look soon.

@JetForMe
Copy link
Author

Okay adding guard macros has allowed the CI checks to pass. Should this be merged? I'm not sure what remains to be done.

@JetForMe JetForMe marked this pull request as ready for review December 2, 2024 06:08
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Yup! I think this is fine. Thank you!

@tannewt tannewt merged commit cfd4117 into adafruit:main Dec 2, 2024
209 checks passed
@JetForMe
Copy link
Author

JetForMe commented Dec 4, 2024

Thanks! Will someone handle closing #7454?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants