 /*
-KidModular - SEQUENCER 
+KidModular - SEQUENCER - V.0.1.0 
 by Tiago Angelo (aka p1nho)
 
 Built with: 

  if(DEBUG) Serial.begin(9600);
  
  // set pins
  for (int i = 5; i < 12; i++){
    // LEDS pins 5~11
    pinMode(i, OUTPUT);
    digitalWrite(i, HIGH); // turn off
  }
  pinMode(44, OUTPUT); // LED 8 - pin44 ??
  digitalWrite(44, HIGH); // turn off  
  pinMode(12, OUTPUT); // PITCH CV OUT pin12
  pinMode(13, OUTPUT); // GATE CV OUT pin13 
  pinMode(4, INPUT_PULLUP); // Encoder button
  // Init LCD
  screen.init();


uint8_t curStep = 0;
uint8_t stepEdit = 0, pStepEdit = 0;
uint8_t pitch[MAXSTEPS]; 
uint8_t dur[] = {50, 50, 50, 50, 50, 50};
uint8_t pDur = 50; 
// Encoder
byte button, _button; 
