Update I2S class API for RP2040

This commit is contained in:
Earle F. Philhower, III committed 2021-04-05 17:03:34 -07:00
1 parent b37e9d232b
commit 8d6631e4ab
1 file changed
+3 -1
+3 -1
View File
@@ -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;