- /*
+/*
   CONFIGURATION for ENDNODE PCB
   25/04/2019
   Version 17.0 XX


void checkAwinig()
{
  if (millis() - 15000 > awning_starttime && awning_started == true) {
    digitalWrite(10, LOW); //Disattiva il comando (fase)
    digitalWrite(11, LOW); //Disattiva il comando (neutro)
    awning_started = false;
    tone(8, 4500, 100);
    delay(400);
    tone(8, 4500, 100);
  }
}

        case AWNINGUP:
          Serial.println("up");
          //attivo relay di salita
          if (sensors[0][1] == 0 || sensors[1][1] == 0) {
            tone(8, 4500, 100);
            digitalWrite(14, HIGH); //relay per impostare up/down up=HIGH down=LOW (1 tenda)
            delay(500);
            digitalWrite(11, HIGH); //relay per impostare up/down up=HIGH down=LOW (1 tenda)
            delay(500);
            digitalWrite(10, HIGH); //Attiva il comando (fase/neutro)
          }
          break;
        case AWNINGDOWN:
          Serial.println("down");
          //attivo relay di discesa
          if (sensors[0][1] == 0 || sensors[1][1] == 0) {
            tone(8, 4500, 100);
            digitalWrite(14, LOW); //relay per impostare up/down up=HIGH down=LOW (1 tenda)
            delay(500);
            digitalWrite(11, LOW); //relay per impostare up/down up=HIGH down=LOW (1 tenda)
            delay(500);
            digitalWrite(10, HIGH); //Attiva il comando (fase/neutro)
          }
          break;
      }
      awning_started = true;
