File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,11 @@ bool AudioOutputI2S::begin(bool txDAC)
201
201
}
202
202
else if (lsb_justified)
203
203
{
204
+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
205
+ comm_fmt = (i2s_comm_format_t ) I2S_COMM_FORMAT_STAND_MSB;
206
+ #else
204
207
comm_fmt = (i2s_comm_format_t ) (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB);
208
+ #endif
205
209
}
206
210
else
207
211
{
Original file line number Diff line number Diff line change @@ -332,9 +332,9 @@ class ESP8266SPIRAM {
332
332
}
333
333
digitalWrite (csPin, HIGH);
334
334
335
- pinMode (sck, SPECIAL );
336
- pinMode (miso, SPECIAL );
337
- pinMode (mosi, SPECIAL );
335
+ pinMode (sck, OUTPUT );
336
+ pinMode (miso, INPUT );
337
+ pinMode (mosi, OUTPUT );
338
338
pinMode (csPin, OUTPUT);
339
339
340
340
// Enable streaming read/write mode
@@ -364,4 +364,4 @@ class ESP8266SPIRAM {
364
364
#endif // ESP32
365
365
366
366
367
- #endif
367
+ #endif
You can’t perform that action at this time.
0 commit comments