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

AudioZeroClass::end() does not turn off output to pin A0. #5

Open
klw1971 opened this issue Mar 14, 2018 · 1 comment
Open

AudioZeroClass::end() does not turn off output to pin A0. #5

klw1971 opened this issue Mar 14, 2018 · 1 comment

Comments

@klw1971
Copy link

klw1971 commented Mar 14, 2018

Please check AudioZeroClass::end(). Output to pin A0 seems to still be active after calling the end() method. I changed it to analogRead(A0) in my local copy and it seems to work much better. :-)

Thanks for the great work!
klw1971

--

void AudioZeroClass::end() {
tcDisable();
tcReset();
analogWrite(A0, 0); --->> Works much better with analogRead(A0) on a Feather M0
}

@SadafShafi
Copy link

It might happen if you haven't set the pinMode() in the setup
I know its too late, but have you double checked that, because I tried to do so and it works well, you can get my code on my page,i'll post it there

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

2 participants