Where in this code do i insert this libraries command that inverts a potentiometers output?
#include <Control_Surface.h> // Include the Control Surface library
// Instantiate a MIDI over USB interface.
USBMIDI_Interface midi1;
// Instantiate CCPotentiometers
CCPotentiometer potentiometers[] {
{A0, 0x4A},
{A1, 0x2A},
{A2, 0x5},
{A3, 0x13},
{A6, 0x14},
{A7, 0x15},
{A8, 0x16},
{A9, 0x17},
{A10, 0x19},
};
void setup() {
Control_Surface.begin(); // Initialize Control Surface
}
void loop() {
Control_Surface.loop(); // Update the Control Surface
}
and the command according to the documentation found here, Control Surface: CCPotentiometer Class Reference is
void invert ()