Simple audio player library for SAMD21G-based Arduinos. Sends an array of samples to the DAC on A0, with optional extrapolation aka oversampling. Intended for playing short sound bites without the need for an external audio player.
Using an Trinket M0 (which is an SAMD21) I can play the sine1kHz array just fine.
However, neither HAL nor Eurythmics plays.
I tried truncating HAL to be the same size as sine1kHz, but that doesn't work either.
Looking at the oscilliscope I also don't see anything resembling a waveform. Pin A0 appears to either be in HIGH or LOW, nothing in between (as you would expect for DAC).
Not sure what else I can do to troubleshoot. Thoughts?
Is it possible to recover samples from data structures other than const uint8_t ?
Because it tries to play samples from Flash memory on XIAO's SPI interface but it doesn't work.
You wrote a very nice library.
Sorry for my English.
Regards Jan Czereśnia.