You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,23 @@ Above example and self-explanatory method name tells everything. It simply provi
88
88
89
89
Optionally available is also `player.clearDecodedTime()` which clears decoded time (sets `SCI_DECODE_TIME` register to `0x00`).
90
90
91
+
##### Enable I2S output
92
+
93
+
```
94
+
player.enableI2sOut(/* i2sRate: optional sampling rate, default is 48kHz */);
95
+
player.disableI2sOut();
96
+
```
97
+
I2S output of the VS1053 chip can be enabled/disabled using methods `enableI2sOut` and `disableI2sOut`. When enabled, the gpio lines won't be available for other purposes. On reset the I2S output is disabled. The assignment to I2S lines is according to the table below:
98
+
99
+
| VS1053 GPIO | I2S |
100
+
|--------------|----------------|
101
+
| 4 | LROUT / WSEL |
102
+
| 5 | MCLCK |
103
+
| 6 | SCLK / BCLK |
104
+
| 7 | SDATA / DOUT |
105
+
106
+
Refer to the [VS1053 datasheet](https://www.vlsi.fi/fileadmin/datasheets/vs1053.pdf) for details: the pin assignment is specified in section 5.1 on page 12, the I2S DAC interface is described in section 11.14 on page 83.
107
+
91
108
#### Logging / debugging
92
109
93
110
The library uses ESP Arduino framework built in logger (Arduino core for [ESP32](https://github.com/espressif/arduino-esp32/issues/893#issuecomment-348069135) and [ESP8266](https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst#debug-level)).<br />
0 commit comments