Here is the code to run on a CircuitPython micro-controller. Written and tested with Version 4.1.
To copy the code to the micro-controller:
cp -a code/modules code/main.py /Volumes/CIRCUITPY/
modules/encoder_panel.py
: Controls the NeoPixel ring and reads the rotary encodermodules/input_selector.py
: Controls the input selector hardwaremodules/mdac_attenuator.py
: Controls the input attenuator hardwaremodules/volume_control.py
: Manages the volume control interfacemodules/input_control.py
: Manages the input selector interface