File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 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)
201201 }
202202 else if (lsb_justified)
203203 {
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
204207 comm_fmt = (i2s_comm_format_t ) (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB);
208+ #endif
205209 }
206210 else
207211 {
Original file line number Diff line number Diff line change @@ -332,9 +332,9 @@ class ESP8266SPIRAM {
332332 }
333333 digitalWrite (csPin, HIGH);
334334
335- pinMode (sck, SPECIAL );
336- pinMode (miso, SPECIAL );
337- pinMode (mosi, SPECIAL );
335+ pinMode (sck, OUTPUT );
336+ pinMode (miso, INPUT );
337+ pinMode (mosi, OUTPUT );
338338 pinMode (csPin, OUTPUT);
339339
340340 // Enable streaming read/write mode
@@ -364,4 +364,4 @@ class ESP8266SPIRAM {
364364#endif // ESP32
365365
366366
367- #endif
367+ #endif
You can’t perform that action at this time.
0 commit comments