0

Feather M4 Express and WavFilePlayerCircuitpythonFS
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M4 Express and WavFilePlayerCircuitpythonFS

by Casey10110 on Fri Feb 15, 2019 12:57 am

Hi Guys,

I've got files uploaded via Circuit Python to the flash memory and, testing with the WavFilePlayerCircuitpythonFS in the Adafruit Audio library, it says that it is playing the files, but I can't hear anything. I suspect it is because the I2S is not configured properly.

With the tone_generator example from the Adafruit Zero I2S library, I use
Code: Select all | TOGGLE FULL SIZE
Adafruit_ZeroI2S i2s(10, 11, 1, 2);
and it works fine, but when I upload the WavFilePlayerCircuitpythonFS file, I can't hear anything.

How can I configure this WavFilePlayerCircuitpythonFS example to work on the same pins? Any ideas?

UPDATE: I tried this edit in the output_i2s.cpp file in the Audio library and it still doesn't work:

Code: Select all | TOGGLE FULL SIZE
void AudioOutputI2S::begin(void)
{
#if defined(__SAMD51__)
   i2s = new Adafruit_ZeroI2S(10, 11, 1, 2);
   dma = new Adafruit_ZeroDMA;


Thank you!
Casey

Casey10110
 
Posts: 53
Joined: Tue May 10, 2016 9:48 am

Re: Feather M4 Express and WavFilePlayerCircuitpythonFS

by Casey10110 on Fri Feb 15, 2019 3:57 pm

Does WavFilePlayerCircuitpythonFS even using i2s? LOL.

Casey10110
 
Posts: 53
Joined: Tue May 10, 2016 9:48 am

Re: Feather M4 Express and WavFilePlayerCircuitpythonFS

by adafruit_support_carter on Fri Feb 15, 2019 6:20 pm

Can you link to the example or guide you are trying to follow.

adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather M4 Express and WavFilePlayerCircuitpythonFS

by Casey10110 on Fri Feb 15, 2019 7:16 pm


Casey10110
 
Posts: 53
Joined: Tue May 10, 2016 9:48 am

Re: Feather M4 Express and WavFilePlayerCircuitpythonFS

by adafruit_support_carter on Fri Feb 15, 2019 8:10 pm


adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: Feather M4 Express and WavFilePlayerCircuitpythonFS

by Casey10110 on Fri Feb 15, 2019 8:33 pm

Dude. THANK YOU. Simply replace this line:
Code: Select all | TOGGLE FULL SIZE
AudioOutputAnalogStereo  audioOutput;

with this:
Code: Select all | TOGGLE FULL SIZE
AudioOutputI2S  audioOutput;

For me, I also had to change
Code: Select all | TOGGLE FULL SIZE
   i2s = new Adafruit_ZeroI2S;

to
Code: Select all | TOGGLE FULL SIZE
   i2s = new Adafruit_ZeroI2S(10,11,1,2);


in the output_i2s.cpp ...

Casey10110
 
Posts: 53
Joined: Tue May 10, 2016 9:48 am

Please be positive and constructive with your questions and comments.