Code only works when Arduino micro is connected to computers usb port. I have tried using an external usb power brick to power the micro and still not getting any signs of life from the built in led which normally flashes when a key is pressed while connected to the pc through a usb cable. (using the same usb cable). Power brick is capable of providing up to 3.1 amps of current. Also tried powering the micro from an external bench power supply at around 7 volts, connected to the micros external Vin & Gnd ports. Still refuses to work unless it is connected to pc through the usb port.
#include <Control_Surface.h>
USBMIDI_Interface mpk25v2;
const AddressMatrix<4, 8> addresses {{
{44, 45, 46, 47, 48, 49, 50, 51},
{52, 53, 54, 55, 56, 57, 58, 59},
{60, 61, 62, 63, 64, 65, 66, 67},
{68, 69, 70, 71, 72, 73, 74, 75},
}};
NoteButtonMatrix<4, 8> buttonmatrix {
{A1,A3,A5,12}, // row pins
{2,3,4,5,6,7,8,9}, // column pins
addresses, // address matrix
CHANNEL_1, // channel and cable number
};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}