 #include <Wire.h>
 #include <Adafruit_SSD1306.h>
 
-
+#define DEBUG_BUTTONS true
 
 byte counter;
 const byte CLOCK = 248;

      counter = 0;
      digitalWrite(bpmLed, HIGH);
    }
    if (counter == 23) {
      digitalWrite(bpmLed, HIGH);
    }


  }
}

void sendMidiNotes() {
  if(!initMode) {
    return;
  }
  for (byte i = 0; i < numberOfChannelButtons; i++) {
    if (channelButtons[i].isJustReleased()) {
      usbMIDI.sendNoteOff(i, 0, midiChannel);
    } else if(channelButtons[i].isJustPressed()) {
      usbMIDI.sendNoteOn(i, 99, midiChannel);
    }
  }  
}

void loop()
{
  usbMIDI.read();
