Skip to content

Commit

Permalink
Update I2S class API for RP2040
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower committed Apr 6, 2021
1 parent b37e9d2 commit 8d6631e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AudioOutputI2S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ bool AudioOutputI2S::begin(bool txDAC)
#elif defined(ARDUINO_ARCH_RP2040)
(void)txDAC;
if (!i2sOn) {
I2S.begin(hertz, bclkPin, doutPin);
I2S.setBCLK(bclkPin);
I2S.setDOUT(doutPin);
I2S.begin(hertz);
}
#endif
i2sOn = true;
Expand Down

0 comments on commit 8d6631e

Please sign in to comment.