earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
1.98k stars 432 forks source link

[ Feature request ] Add function to swap I2S clocks #638

Closed nils-trubkin closed 1 year ago

nils-trubkin commented 1 year ago

The library cannot i2s.swapClocks() for the I2S output devices. Two clocks being swapped are BCLK and WCLK (aka. WS, aka. LRCLK).

This is useful when pins on the hardware come in the opposite order from that of the board and saves the need to cross-wire. Details of this are described in the arduino-pico lib: Link to issue 1287