Clean ESP32 build (#529)
This commit is contained in:
1 parent
9384bb0f3d
commit
be8b8efbf2
2 files changed
+8
-4
No files matched your search
@@ -201,7 +201,11 @@ bool AudioOutputI2S::begin(bool txDAC)
|
|||||||
}
|
}
|
||||||
else if (lsb_justified)
|
else if (lsb_justified)
|
||||||
{
|
{
|
||||||
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
|
||||||
|
comm_fmt = (i2s_comm_format_t) I2S_COMM_FORMAT_STAND_MSB;
|
||||||
|
#else
|
||||||
comm_fmt = (i2s_comm_format_t) (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB);
|
comm_fmt = (i2s_comm_format_t) (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-4
@@ -332,9 +332,9 @@ class ESP8266SPIRAM {
|
|||||||
}
|
}
|
||||||
digitalWrite(csPin, HIGH);
|
digitalWrite(csPin, HIGH);
|
||||||
|
|
||||||
pinMode(sck, SPECIAL);
|
pinMode(sck, OUTPUT);
|
||||||
pinMode(miso, SPECIAL);
|
pinMode(miso, INPUT);
|
||||||
pinMode(mosi, SPECIAL);
|
pinMode(mosi, OUTPUT);
|
||||||
pinMode(csPin, OUTPUT);
|
pinMode(csPin, OUTPUT);
|
||||||
|
|
||||||
// Enable streaming read/write mode
|
// Enable streaming read/write mode
|
||||||
@@ -364,4 +364,4 @@ class ESP8266SPIRAM {
|
|||||||
#endif // ESP32
|
#endif // ESP32
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user