ESP32-S2 Audio I2S library
Posted: Tue Aug 10, 2021 9:21 am
Hi,
I am working on the ESP32-S2 and I would like to be able to stream radio from the internet. There are arduino libraries on the ESP32 but not for the ESP32-S2. They are not compatible, I have several errors during the compilation.
I don't use an mp3 codec, but just an amplifier in I2S MAX98360 in I2S.
Has anyone ever managed to do this on the ESP32-S2?
Here are exemple of errors I have with the library https://github.com/schreibfaul1/ESP32-audioI2S
error: 'I2S_MODE_DAC_BUILT_IN' was not declared in this scope
m_i2s_config.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN );
error: 'i2s_set_dac_mode' was not declared in this scope
i2s_set_dac_mode(m_f_channelEnabled);
Sani300
I am working on the ESP32-S2 and I would like to be able to stream radio from the internet. There are arduino libraries on the ESP32 but not for the ESP32-S2. They are not compatible, I have several errors during the compilation.
I don't use an mp3 codec, but just an amplifier in I2S MAX98360 in I2S.
Has anyone ever managed to do this on the ESP32-S2?
Here are exemple of errors I have with the library https://github.com/schreibfaul1/ESP32-audioI2S
error: 'I2S_MODE_DAC_BUILT_IN' was not declared in this scope
m_i2s_config.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN );
error: 'i2s_set_dac_mode' was not declared in this scope
i2s_set_dac_mode(m_f_channelEnabled);
Sani300