void callSetLEDstate(byte channel, byte pitch, byte velocity) {
switch(pitch) {
case PLAY_LEFT_NOTE:
//this is where I want to activate interrupt
openDeck.changeBlinkState(0, velocity);
break;
case PLAY_RIGHT_NOTE:
//or here
openDeck.changeBlinkState(1, velocity);
break;
}
void OpenDeckRewrite::blinkLED(int blinkLED_1, int blinkLED_2) {
int arrayOfBlinkLeds[NUMBER_OF_BLINK_LEDS] = {blinkLED_1, blinkLED_2};
for (int i=0; i<NUMBER_OF_BLINK_LEDS; i++) {
if (blinkLedOn[i]) {
// if the LED is off turn it on and vice-versa:
if (ledState[arrayOfBlinkLeds[i]] == LOW) ledState[arrayOfBlinkLeds[i]] = true;
else ledState[arrayOfBlinkLeds[i]] = false;
}
else ledState[arrayOfBlinkLeds[i]] = false;
}
writeLEDs();
}