Skip to content

Added basic Espressif PDM microphone support #7454 - #9828

Merged
tannewt merged 3 commits into
adafruit:mainfrom
JetForMe:main
Dec 2, 2024
Merged

tannewt merged 3 commits into
adafruit:mainfrom
JetForMe:main

Conversation

@JetForMe

Copy link
Copy Markdown

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

tannewt commented Nov 26, 2024 •

Copy link
Copy Markdown
Member

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

@JetForMe

JetForMe commented Nov 28, 2024 •

Copy link
Copy Markdown
Author

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
Copy Markdown
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

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

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
@JetForMe

JetForMe commented Dec 4, 2024

Copy link
Copy Markdown
Author

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