I hoping someone with experience with the Control Surface library can help me with this hopefully simple issue. I am attempting to modify the Note_Range_LEDs example from the Control Surface library from an 8 note range to 16. I've wired up a second shift register and updated the code. See the schematic and code below.
The results I am currently seeing is that only LED1 lights up on all notes. The other LED's never light.
I also also trying to move the first note from C4 to C1 with no luck.
Any assistance would be amazing!
#include <Control_Surface.h>
// Instantiate a MIDI Interface to use
USBMIDI_Interface midi;
// Instantiate a shift register as output for the LEDs/Gates
SPIShiftRegisterOut<16> sreg {
SPI, // SPI interface to use
10, // Latch pin (ST_CP)
MSBFIRST, // Byte order
};
// Extended note range to 16 and moved first note to C1
NoteRangeLEDs<16> leds {sreg.pins(), MIDI_Notes::C[1]};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}