Closed Wallirec closed 10 months ago
Where did you find this code? It looks like it was written for an old version of the library.
You could use something like this:
#include <Control_Surface.h>
// Sends Program Change messages for patches 1, 2, 3, 4,
// depending on the active selection.
ProgramChanger<4> pc{{1, 2, 3, 4}, Channel_1};
// Changes the selection of the program from `pc` based
// on the momentary push buttons on pins 11 and 12.
IncrementDecrementSelector<4> sel{pc, {11, 12}};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}
Thank you
Hello! I wanted to upload your sketch, but it doesn’t compile, tell me what’s wrong.