10 static const char *
const TAG =
"i2s_audio";
12 #if defined(USE_ESP_IDF) && (ESP_IDF_VERSION_MAJOR >= 5) 13 static const uint8_t I2S_NUM_MAX = SOC_I2S_NUM;
17 static i2s_port_t next_port_num = I2S_NUM_0;
19 if (next_port_num >= I2S_NUM_MAX) {
20 ESP_LOGE(TAG,
"Too many I2S Audio components!");
25 this->
port_ = next_port_num;
26 next_port_num = (i2s_port_t) (next_port_num + 1);
28 ESP_LOGCONFIG(TAG,
"Setting up I2S Audio...");
virtual void mark_failed()
Mark this component as failed.
Implementation of SPI Controller mode.