Skip to content

Running into issues outputting audio to Adafruit feather rp2040 #2587

Answered by earlephilhower
Dhoward094 asked this question in Q&A
Discussion options

You must be logged in to vote

You should try one of the I2S output examples to verify the pins. If the examples don't work then the pins you're using may not be right, or maybe the I2S DAC needs some kind of control to actually turn on (i.e. does it need an I2C write or GPIO pin set high?).

I'm not sure the USB CDC buffer can actually grow to 128 bytes so your loop may never actually read anything. We don't use a separate FIFO since it would just be wasted memory copies. So, try 16 or 32 bytes instead of 128 in your buffer read/write size.

Also, while 44.1Khz, 16b, stereo only requires ~1.4Mbit and USB 1.1 theoretically gives 12Mbit, I think you're not actually going to be able to reach that rate using a normal CDC(Se…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dhoward094
Comment options

Answer selected by Dhoward094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants