          displayWrite("sbagliato");
          state = stateEnd;
        }
-                delay(1000);
+          delay(1000);
           noTone(tonePin);
           allLedOff();
 

    sequence[i] = redButton;
  }
  
}

void loop() {
  
  if (state == stateNewLevel) {
    level ++;

    displayWrite("ripeti");
    currentPlayingSeqIndex = 0;
    
  }
  
  if (state == statePlay) {
    
    
    
      
  //    stateRedButton = analogRead(A0);
//      stateRedButton = analogRead(A0);
  //    stateRedButton = analogRead(A0);
    //  stateRedButton = analogRead(A0);
  }
  
//  Serial.println(analogRead(A0));
  /*
  if (pressed(redButton) && (state == statePlay)) {
    checkPressing(redLed, NOTE_C4, redButton); 
  } else if (pressed(greenButton) && (state == statePlay)) {
