Control Surface
main
MIDI Control Surface library for Arduino
|
This is an example of the VolumeControl class of the Control Surface library. It acts as a USB Audio DAC (Digital-to-Analog Converter).
This specific example uses an I²S DAC, but you can use other interfaces of the Teensy Audio library as well. For testing, I'm using a PCM5102a.
Connect the left terminal of the potentiometer to ground, and the right one to VCC.
Select a USB audio option from the Tools menu in the IDE.
Upload the sketch, and select the Control Surface as the audio output of your computer. Connect the output of the DAC to a pair of headphones or powered speakers, and play some music.
You can now adjust the volume using the potentiometer.
None.
Written by PieterP, 2019-08-09
https://github.com/tttapa/Control-Surface