#include "main.h"

void setup()
{
  Serial.begin(115200);
  activate_controller();
  activate_buttons();
}

void loop()
{
  midiEventPacket_t rx = MidiUSB.read();
  midi_header(rx);
  trellis.read(); // interrupt management does all the work! :)
  delay(20); // the trellis has a resolution of around 60hz
}
