This library provides functions to support the WM8960 audio codec. The Codec is connected via I2S for the audio data and is configured via I2C.
It can drive some speakers via the amplifier output and supports full duplex mode where we can both read and write audio data at the same time.
This library is based on the original provided by Infineon and has been adapted for Arduino to use the Wire API.
Though this library can be used stand alone, I recommend to use it with the WM8960Stream class provided by the AudioTools project.
You can download the library as zip and call include Library -> zip library. Or you can git clone this project into the Arduino libraries folder e.g. with
cd ~/Documents/Arduino/libraries
git clone pschatzmann/arduino-wm8960.git
I recommend to use git because you can easily update to the latest version just by executing the git pull
command in the project folder.
You can use this library also outside of Arduino with cmake. In this case you need to provide the implementation for the i2c_write function yourself!