We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da26016 commit cefea28Copy full SHA for cefea28
libraries/I2S/src/I2S.cpp
@@ -161,11 +161,14 @@ bool I2S::begin() {
161
}
162
163
void I2S::end() {
164
- _running = false;
165
- delete _arb;
166
- _arb = nullptr;
167
- delete _i2s;
168
- _i2s = nullptr;
+ if (_running) {
+ pio_sm_set_enabled(_pio, _sm, false);
+ _running = false;
+ delete _arb;
+ _arb = nullptr;
169
+ delete _i2s;
170
+ _i2s = nullptr;
171
+ }
172
173
174
int I2S::available() {
libraries/PWMAudio/keywords.txt
@@ -17,6 +17,7 @@ end KEYWORD2
17
setPin KEYWORD2
18
setFrequency KEYWORD2
19
setBuffers KEYWORD2
20
+setStereo KEYWORD2
21
22
onTransmit KEYWORD2
23
0 commit comments