       num |= (Wire.read() << 8);
       Serial.println(num);
   }
-          
-  else { 
+
+  else {
       Serial.print(F("Unrecognized cmd '")); Serial.print(serInStr); Serial.println("'");
   }
   //serInStr[0] = 0;  // say we've used the string
-  
+
   printCmdPrompt();
-  
-}
+
+}

      byte a = (num >> 16) & 0xff;
      byte b = (num >>  8) & 0xff;
      byte c = (num >>  0) & 0xff;
      
      if( cmd == 'c' ) {
          Serial.print(F("Fade to r,g,b:"));
          blinkm.fadeToRGB( a,b,c );
      } 
      else if( cmd == 'h' ) {
          Serial.print(F("Fade to h,s,b:"));
          blinkm.fadeToHSB( a,b,c );
      } 
      else if( cmd == 'C' ) {
          Serial.print(F("Random by r,g,b:"));
          blinkm.fadeToRandomRGB( a,b,c );
      } 
      else if( cmd == 'H' ) {
          Serial.print(F("Random by h,s,b:"));
          blinkm.fadeToRandomHSB( a,b,c );

    Serial.print(F(": cmd> "));
}


//
// if 6-digit color, assume hex, otherwise any num
int str_to_nums(int32_t* buffer, char *str, int buflen)
{
    char    *s;
    int     pos = 0;
    while((s = strtok(str, ", ")) != NULL && pos < buflen){
        str = NULL;
        buffer[pos++] = strtol(s, NULL, strlen(s)==6 ? 16 : 0); // parse as hexstring
    }
    return pos;
}

// arduino loop func
void loop()
{
