mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
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:
committed by
laokaiyao
parent
1433f5337f
commit
7195af2d7d
@@ -102,6 +102,7 @@ void app_main(void)
|
|||||||
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1 //Interrupt level 1
|
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1 //Interrupt level 1
|
||||||
};
|
};
|
||||||
i2s_pin_config_t pin_config = {
|
i2s_pin_config_t pin_config = {
|
||||||
|
.mck_io_num = I2S_PIN_NO_CHANGE,
|
||||||
.bck_io_num = I2S_BCK_IO,
|
.bck_io_num = I2S_BCK_IO,
|
||||||
.ws_io_num = I2S_WS_IO,
|
.ws_io_num = I2S_WS_IO,
|
||||||
.data_out_num = I2S_DO_IO,
|
.data_out_num = I2S_DO_IO,
|
||||||
|
Reference in New Issue
Block a user