       }
       case 'X' : {
         red=0; green=0; blue=0;
-        setOutput(*rgb);
+        setOutput(rgb);
         break;
       }
       case '!': {

  Serial.readStringUntil('\n').toCharArray(input,255);
  if (input!="") { // if connected    
    switch (input[0]) {
      case '?': {
        Serial.println(red);
        Serial.println(green);

            timev[x]=input[x+16];
          }
          int col1[4],col2[4];
          int *col1p[4] = {&col1[0],&col1[1],&col1[2]};
          int *col2p[4] = {&col2[0],&col2[1],&col2[2]};
          decodeHex(hex1,col1p);
          decodeHex(hex2,col2p);

          float timeVal = atoi(timev); //use strtol or sscanf instead

