Download Print this page

Waveshare WM8960 User Manual page 10

Advertisement

WM8960 Audio Board
2. Description of files
Examples are compiled on MDK-ARM V4, generated by STM32CubeMX
../Src:
WM8960.c: Bottom driver of WM8960, mainly provide functions that sending data
to chip, initializes chip. In the top of this file, macros are used to choose record
devices (On board mic or earphone mic), in the function of WM8960 initialization,
you can uncomment codes to enable functions of bypass output
Record_WAV.c: Provide function that record audio and stores to SD card, include
create WAV files, record audio, handle keys events and so on.
3. Expected result
Connecting all the modules to Open429I-C, then inset an earphone or speaker to
Audio board. Connect UASRT1 interface of Open429I-C to PC and open the serial
assistance software.
Download example to Open429I-C, MCU will prints the recording file name via
UASRT1, and prompt that press Joystick to begin recording.
After pressing joystick, you can speak to mic, and you can see your voice are
bypass outputted from speaker or earphone, You can press Joystick to
pause/restore during recording. Long press Joystick for 1~2s to stop recording.
After recording, power off Open429I-C, inset the SD card to PC, you can find the
WAV files recorded and play; You can also use the play example to play the audio
you record.

Advertisement

loading