 }
 
 // Create the callback function
-void processMessage(char pin, unsigned char message[], unsigned char repeat, unsigned int intraDelay) {
+void cmdSend(char pin, unsigned char message[], unsigned char repeat, unsigned int intraDelay) {
     unsigned int out = 0;
     unsigned char i;
 


        switch (gMessage[0]) {
            case 1:
                pin = gMessage[1];
                repeat = gMessage[2];
                intraDelay = gMessage[3] * DELAY_MULTIPLIER;
                processMessage(pin, &gMessage[4], repeat, intraDelay);
                break;
        }



void loop() {
    unsigned char character = 0;

    while (Serial.available()) {
        if (gCounter >= MAX_MESSAGE_LENGTH) gCounter = 0;
