arduino-libraries / AudioZero

Allows playing audio files from an SD card. For Arduino Zero and MKR1000 only.
12 stars 31 forks source link

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

Open klw1971 opened 6 years ago

klw1971 commented 6 years ago

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 commented 4 years ago

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