8000 Enable PWM audio via GPIO on Zero 2 W by dwhinham · Pull Request #260 · rsta2/circle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable PWM audio via GPIO on Zero 2 W #260

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
Nov 8, 2021
Merged

Conversation

dwhinham
Copy link
Contributor
@dwhinham dwhinham commented Nov 7, 2021

These commits allow you to use USE_PWM_AUDIO_ON_ZERO and USE_GPIO{18|19}_FOR_{LEFT|RIGHT}_PWM_ON_ZERO to gain PWM audio output on the new Zero 2 W.

In sysconfig.h, I wrapped the PWM #defines in a #if RASPPI == 1 || RASPPI == 3 block so that they are picked up when compiling with RASPPI=3 as we do for Zero 2 W. This seemed to be the simplest way to achieve this, but if you'd prefer another way I'd be more than happy to respond to your feedback.

Cheers!

@rsta2 rsta2 merged commit 5444076 into rsta2:develop Nov 8, 2021
@rsta2
Copy link
Owner
rsta2 commented Nov 8, 2021

Thanks for this contribution! I think, it's OK to add this to sysconfig.h in this way.

@dwhinham dwhinham deleted the rpi-0-2w-pwm branch November 8, 2021 14:53
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
0