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

functions to set PDM pins #2133

Merged
merged 4 commits into from
Apr 29, 2024
Merged

functions to set PDM pins #2133

merged 4 commits into from
Apr 29, 2024

Conversation

clhuang
Copy link
Contributor

@clhuang clhuang commented Apr 29, 2024

The current PDM class is not very user-friendly, as it requires you to modify some header file in order to set PIN_PDM_DIN/PIN_PDM_CLK (and there is no documentation on how to do so). Add some defaults for these defines, as well as a method to set them at runtime.

libraries/PDM/src/rp2040/pdm.pio Outdated Show resolved Hide resolved
Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

Thanks!

@earlephilhower earlephilhower merged commit 783bee5 into earlephilhower:master Apr 29, 2024
13 checks passed
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