From 8d6631e4ab6894eb299ba2e5a24ab58a6879c58d Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Mon, 5 Apr 2021 17:03:34 -0700 Subject: [PATCH] Update I2S class API for RP2040 --- src/AudioOutputI2S.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AudioOutputI2S.cpp b/src/AudioOutputI2S.cpp index 496c2d1..f4393e2 100644 --- a/src/AudioOutputI2S.cpp +++ b/src/AudioOutputI2S.cpp @@ -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;