20.1. I2S

20.1.1. Overview

The example shows recording and playing sound by i2s interface(PDM and DAO peripheral).

20.1.2. Board Setting

Connect speaker to DAO interface on board.

20.1.3. Known issues

When using DAO to play some audio, it may generate noise.

20.1.4. 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