Update I2S class API for RP2040
This commit is contained in:
1 parent
b37e9d232b
commit
8d6631e4ab
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user