Skip to content

Fix i2s rp2350 example#3228

Open
mlsorensen wants to merge 2 commits intoadafruit:mainfrom
mlsorensen:fix-i2s-rp2350-example
Open

Fix i2s rp2350 example#3228
mlsorensen wants to merge 2 commits intoadafruit:mainfrom
mlsorensen:fix-i2s-rp2350-example

Conversation

@mlsorensen
Copy link
Copy Markdown

This took me so long to figure out. The documented I2S Examples have swapped the pins for bit clock(BCLK) and Word Select (LRC).

Per the documentation at https://docs.circuitpython.org/en/latest/shared-bindings/audiobusio/

it goes: I2SOut(bclk, word_select, data)

However the guide specifies:

BCLK = D5
LRC = D6
DIN = D9

And the wiring doc is correct according to this mapping, but then the code calls:

audio = audiobusio.I2SOut(board.D6, board.D5, board.D9)

Which clearly has BCLK and LRC swapped. Now that I reviewed the API this is clear.

PR fixes the ordering, tested the example as working now.

Call I2SOut with correct pin order
Call I2SOut with correct pin order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant