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

how do i modify the Output Pin for NoDAC #673

Open Buttermesserente opened 3 months ago

Buttermesserente commented 3 months ago

So i built the example with a single transistor as a amplifier and it uses the TX pin connected to the base to control the frequencies. for my project it would be important to use some other pin as the output source. is there any way to do this?

kleinesfilmroellchen commented 3 months ago

On the ESP8266, the I2S data pin is hard wired to the same GPIO as TX. Just like the pins for SPI1, SPI2 and I2C are hardwired too. The I2S data pin is required for the ΔΣ-DAC in the "NoDAC" output generator. You can't switch the output pin for other I2S-based outputs (DAC or SPDIFF) either.