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

Using PCM.h and AnalogWrite(pin, value) causes PWM to stop working #9

Open
UnforeseenOcean opened this issue Nov 23, 2020 · 0 comments

Comments

@UnforeseenOcean
Copy link

Let's say we have an LED that is controlled on pin 10 of Arduino Nano, and the speaker is connected to pin 11 as the library states.
When the startPlayback() fires, it plays the sound without issue, but then the LED stops turning on.
If anything is writing to the PWM-capable pin, the sound playback immediately stops.

This potentially is due to the fact that the PWM timer is disabled when the playback stops, from my cursory overview.

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

No branches or pull requests

1 participant