The mcp4822 module provides the MCP4822 class for non-blocking audio playback through the Microchip MCP4822 dual-channel 12-bit SPI DAC using PIO and DMA. It allows users to output audio by configuring clock, MOSI, and chip select pins with adjustable gain settings.
* Non-blocking playback for audiocore samples such as RawSamples or WaveFiles
* Support for sine wave generation via array manipulation
* Methods for controlling playback including play, stop, pause, and resume
* Monitoring of real-time playback status through the playing property