|
|
@ -638,6 +638,8 @@ void InitI2SSpeakerOrMic(int mode)
|
|
|
|
i2s_config.mode =
|
|
|
|
i2s_config.mode =
|
|
|
|
(i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM);
|
|
|
|
(i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM);
|
|
|
|
i2s_config.sample_rate = MIC_SAMPLE_RATE;
|
|
|
|
i2s_config.sample_rate = MIC_SAMPLE_RATE;
|
|
|
|
|
|
|
|
i2s_config.dma_buf_count = 8;
|
|
|
|
|
|
|
|
i2s_config.dma_buf_len = 240;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -876,4 +878,4 @@ void loop()
|
|
|
|
M5.update();
|
|
|
|
M5.update();
|
|
|
|
webSocket.loop();
|
|
|
|
webSocket.loop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|