     digitalWrite(channels[15],LOW);
     if (act == 0) {
       t0 = millis();
-      Serial.println("ACT 0");
+      //Serial.println("ACT 0");
       inviatop = false;
       inviatoG = false;
       act++;
       att1 = 0;
       att2 = 0;
-      Serial.print(digitalRead(SEL_A));
-      Serial.print(" ");
-      Serial.print(digitalRead(SEL_B));
-      Serial.println(" ");
+      //Serial.print(digitalRead(SEL_A));
+      //Serial.print(" ");
+      //Serial.print(digitalRead(SEL_B));
+      //Serial.println(" ");
     }
     if ((digitalRead(SEL_A) == 0) && (digitalRead(SEL_B) == 1)) //A
     {

    // P 2000       >> set velocity of little cone to 2000
    // g 90 -90 90  >> move big cone
    // G 4000       >> set velocity of big cone
    if (Serial.available() > 0) {
      Serial2.write(Serial.read());
    }

    // Check button

    if (inviatoG == false) {
      att1 = muovi(let_G, vel_G, posG_a, posG_b, posG_c);
      digitalWrite(channels[act-1], HIGH);
      //Serial.println("mando scena G");
      //Serial.println(act);
      inviatoG = true;
      tdd = millis();
    }
    if ((inviatop == false) && ((long)(millis() - tdd) > dd)) {
      att2 = muovi(let_p, vel_p, posp_a, posp_b);
      digitalWrite(channels[act-1], LOW);
      //Serial.println("mando scena p");
      //Serial.println(act);
      inviatop = true;
    }
    if ((long)(millis() - t0) > (long)(magg(att1, att2) + pausa)) {
