 
 
   if (network.available()) {
+    digitalWrite(19, LOW);
     int size = 100;
     char a[size];
 

  // GND
  pinMode(4, OUTPUT);
  digitalWrite(4, LOW);


  Serial.begin(9600);

    Command msg(a);

    if (msg.getIdentifier() == "SLP") {
      int numberOfPoints     = msg.getParam('L').toInt();
      int transitionDuration = msg.getParam('T').toInt();
      int litDuration        = msg.getParam('D').toInt();
      String colors          = msg.getParam('P');
      
      cube.setTransitionParameters(numberOfPoints, transitionDuration, litDuration, colors);
    }
    digitalWrite(19, HIGH);
  }


