6.15.1. I2S¶
6.15.1.1. Overview¶
The example shows recording and playing sound by i2s interface(PDM and DAO peripheral).
6.15.1.2. Board Setting¶
Connect speaker to DAO interface on board.
6.15.1.3. Running the example¶
When the example runs successfully, make some sound according to the log prompt, the sound will be recorded and played back. The following message is displayed in the terminal:
> i2s example
> testing pdm to dao
> Recording...
> Please make some sound to mic0
> Playing...
> Recording...
> Please make some sound to mic0
> testing wav playback
> testing sine wave playback