i2s: add mck pin definition in the example

If the mck pin is not set to GPIO 0,1,3 or -1 the whole pin configuration fails. This fix corrects that.

Merges https://github.com/espressif/esp-idf/pull/7661
This commit is contained in:
Arnaud-Oechslin 2021-10-08 08:10:58 +02:00 committed by laokaiyao
parent 1433f5337f
commit 7195af2d7d

View File

@ -102,6 +102,7 @@ void app_main(void)
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1 //Interrupt level 1
};
i2s_pin_config_t pin_config = {
.mck_io_num = I2S_PIN_NO_CHANGE,
.bck_io_num = I2S_BCK_IO,
.ws_io_num = I2S_WS_IO,
.data_out_num = I2S_DO_IO,