An up to 32bit I2S library for the RP2040 using PIO
WORK IN PROGRESS!
The library in pico-extras I2S library was not sufficient for me as it did not include the following features:
- Flexible sample sizes >16 bit
- I2S receiver
- Generating an MCLK signal
- More control for real time applications
I also did not like the quite complex audio interface implemented in pico-extras. I'm trying to keep this interface simpler and more aimed towards signal generation instead of audio.
The library is designed to be compatible with the pinout of the pico-extras code at the time of writing this.
With pico-sdk environment variables set: Go to testing/
and execute ./make.sh
. It should build the binary in testing/build/
Use the compiled UF2 file and copy it or flash with e.g. openOCD.
- Nicely documented pico I2S implementation (German)
- Phillips I2S documentation
- pico-extras I2S lib developement and corresponding example code