- Sun Jan 01, 2017 4:35 pm
#60251
Happy new year everyone!
I have tried this code on both a Huzzah and a feather Huzzah board - same result.
The code compiles and uploads with no problem. The WAV files uploaded with no problems. The web interface works great. My problem is the sound produced. When I click on a filename, all I hear is a clicking sound.
I noticed that in the picture, there is a resistor, however I can't figure out how it is connected. I did not use one! Everything is connected as defined in the table.
I connected the I2S outputs to a logic analyzer and configured it to decode I2S. I can see the clock and the word select signals. I see the data, however it is not as I expected, mostly all 1's! I did capture a small sample showing a small sample of what appears to be valid data.
Attempting to understand the problem, I stripped out all of what I believed to be unnecessary to demonstrate the I2S output. I added two loops that simply count up by 10 and then down by 10 and change the sample rate to make it easier to view. I use these as the right and left values for i2s_write_sample. See the attached code sample. On the logic analyzer, I expected to see this in the data stream. However, I did not! I saw a short burst of what appeared to be random data and the left and right channels, which should be the same, were not!
By the way, I am having the same problem as Lythy , with the resets after a few loops.
Thank you in advance for any help!
Bob
You do not have the required permissions to view the files attached to this post.