Documentation for IoAbstraction extras.
PGA2310 Volume Control device for IoAbstraction
PGA2310 Volume Control device Provides a simple analog device that can be used to control a PGA2310 volume device. Left channel is 0 and right channel is 1. The device should be connected on the SPI bus as usual. This should work with Arduino now, and mbed in a patch release coming soon. To use first include the header: #include <extras/Pga2310VolumeControl.h> Then initialise globally: SPIWithSettings spiSettings(&SPI, CS_PIN); Pga2310VolumeControl pga2310(spiSettings); And to use it as a floating point value