Duvida no IR com codigo RAW + progmem

Pessoal, estou com um problema.

Estou tentando controlar meu ar condicionado através do arduino e um emissor de IR porém meu código raw para cada comando é enorme ocupando assim toda a memória do arduino apenas com um comando.

Criei este código aqui afim de utilizar uma tabela com os valores RAW de cada comando usando o Progmem afim de não ocupar toda a memoria ram porém não deu certo.

Alguem poderia me dar uma força?

Abraço

#include <IRremote.h>
IRsend irsend;

//const int LED = 13;
//char comando;

void setup()
{
  Serial.begin(9600);
  Serial.println("Setup concluido");
}

String inData;

const unsigned int irTable[2][583] PROGMEM = {
  {508, 356, 508, 360, 504, 364, 508, 356, 508, 360, 508, 25052, 3540, 1664, 504, 1232, 496, 364, 504, 360, 508, 360, 508, 1232, 492, 368, 508, 356, 512, 356, 508, 360, 508, 1232, 492, 364, 512, 1228, 496, 1240, 492, 368, 508, 1228, 496, 1240, 492, 1240, 492, 1240, 492, 1240, 496, 364, 512, 356, 512, 1228, 492, 368, 512, 356, 508, 360, 504, 360, 508, 360, 508, 356, 508, 360, 508, 360, 504, 360, 512, 356, 508, 1228, 496, 364, 508, 1232, 492, 368, 512, 356, 508, 360, 508, 1228, 496, 1236, 496, 368, 508, 356, 508, 360, 512, 356, 508, 1228, 492, 368, 508, 360, 508, 360, 508, 356, 512, 356, 512, 356, 508, 360, 508, 356, 508, 356, 512, 356, 508, 360, 508, 1228, 492, 1244, 492, 1240, 492, 368, 512, 356, 504, 1232, 496, 1240, 492, 1240, 492, 35464, 3540, 1660, 504, 1228, 500, 360, 512, 356, 508, 360, 508, 1228, 496, 364, 512, 356, 508, 360, 508, 356, 516, 1224, 492, 368, 512, 1228, 492, 1240, 496, 364, 512, 1228, 492, 1244, 492, 1236, 496, 1240, 492, 1240, 492, 368, 512, 356, 512, 1224, 496, 368, 508, 356, 508, 360, 500, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 368, 500, 364, 500, 368, 500, 1240, 492, 368, 504, 360, 500, 368, 500, 368, 500, 1236, 492, 372, 504, 360, 500, 368, 500, 368, 496, 372, 496, 368, 500, 368, 496, 368, 500, 368, 500, 368, 496, 368, 500, 364, 500, 368, 500, 1240, 492, 368, 508, 356, 500, 368, 500, 368, 500, 368, 500, 1236, 492, 368, 504, 364, 500, 1240, 488, 1244, 492, 368, 508, 35452, 3536, 1664, 508, 1228, 500, 360, 508, 356, 508, 360, 508, 1232, 492, 368, 508, 360, 508, 356, 512, 356, 508, 1232, 492, 368, 508, 1228, 496, 1236, 496, 368, 508, 1228, 496, 1240, 492, 1240, 492, 1240, 496, 1240, 492, 368, 508, 360, 508, 1228, 492, 368, 512, 356, 504, 364, 508, 360, 496, 372, 504, 360, 504, 364, 508, 356, 500, 368, 504, 364, 504, 360, 508, 360, 508, 356, 504, 364, 504, 364, 504, 360, 508, 360, 500, 368, 500, 364, 500, 368, 504, 360, 512, 1224, 492, 1240, 496, 1240, 492, 368, 508, 360, 504, 364, 504, 364, 508, 1224, 496, 368, 500, 368, 500, 1236, 492, 368, 508, 360, 500, 368, 504, 364, 504, 360, 508, 360, 500, 368, 500, 364, 508, 360, 504, 360, 504, 364, 500, 364, 504, 364, 504, 364, 500, 364, 504, 364, 504, 1232, 492, 368, 508, 360, 500, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 368, 504, 364, 496, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 368, 496, 1240, 496, 1240, 496, 364, 504, 364, 496, 368, 500, 368, 500, 368, 496, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 1240, 500, 1232, 504, 356, 508, 360, 500, 368, 496, 368, 500, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 368, 500, 364, 500, 368, 500, 1236, 500, 364, 500, 368, 496, 368, 500, 368, 496, 368, 500, 1240, 500, 1232, 500, 360, 500, 368, 500, 368, 496, 368, 500, 368, 500, 364, 500, 368, 500, 1236, 496, 368, 500, 364, 500, 368, 500, 368, 496, 368, 500, 368, 500, 368, 496, 368, 500, 1236, 496, 368, 500, 1236, 496, 368, 496, 1240, 496, 368, 496, 1236, 496, 372, 496}, //liga ar
  {508, 356, 504, 364, 504, 364, 500, 364, 500, 368, 500, 25060, 3540, 1660, 508, 1232, 500, 360, 500, 364, 504, 364, 500, 1240, 500, 360, 504, 360, 508, 360, 504, 364, 504, 1232, 504, 360, 504, 1232, 504, 1232, 496, 364, 508, 1232, 496, 1236, 496, 1236, 496, 1236, 496, 1236, 500, 364, 500, 364, 508, 1232, 500, 360, 504, 364, 504, 364, 508, 356, 508, 360, 504, 360, 508, 360, 508, 360, 508, 356, 504, 364, 504, 1232, 496, 364, 504, 1236, 496, 364, 504, 364, 504, 364, 508, 1228, 496, 1240, 496, 364, 508, 356, 500, 368, 508, 360, 504, 1232, 496, 364, 504, 364, 500, 368, 508, 360, 508, 356, 508, 360, 508, 356, 508, 360, 508, 360, 508, 356, 508, 360, 504, 1232, 496, 1240, 492, 1240, 492, 368, 508, 356, 504, 1236, 496, 1240, 492, 1240, 492, 35456, 3544, 1664, 504, 1228, 504, 356, 504, 364, 504, 360, 512, 1228, 500, 364, 504, 360, 508, 360, 504, 364, 504, 1232, 496, 364, 508, 1232, 492, 1240, 500, 360, 508, 1232, 496, 1236, 496, 1240, 492, 1240, 492, 1240, 496, 364, 508, 360, 508, 1232, 492, 368, 504, 360, 500, 368, 500, 368, 500, 364, 500, 368, 500, 368, 496, 372, 504, 360, 500, 364, 500, 368, 504, 1236, 492, 368, 500, 368, 496, 368, 500, 368, 500, 1236, 496, 368, 496, 368, 500, 368, 500, 368, 496, 368, 504, 364, 500, 368, 496, 368, 504, 364, 500, 364, 500, 368, 500, 368, 496, 372, 500, 1236, 492, 368, 500, 368, 496, 372, 500, 364, 500, 368, 500, 1236, 496, 364, 500, 368, 500, 1236, 496, 1236, 500, 364, 504, 35452, 3544, 1660, 508, 1228, 500, 360, 500, 364, 504, 364, 504, 1236, 504, 356, 504, 364, 504, 360, 504, 364, 500, 1240, 496, 364, 500, 1240, 500, 1232, 500, 360, 504, 1236, 496, 1236, 500, 1232, 504, 1228, 504, 1232, 500, 360, 504, 360, 500, 1240, 500, 360, 500, 368, 500, 368, 508, 360, 504, 360, 504, 3508, 360, 504, 360, 500, 368, 504, 364, 504, 360, 508, 356, 504, 368, 504, 360, 504, 364, 504, 360, 512, 356, 504, 364, 504, 1232, 496, 364, 496, 372, 504, 1232, 500, 1232, 500, 1236, 500, 360, 500, 364, 500, 368, 504, 364, 508, 1228, 504, 356, 500, 368, 504, 1236, 500, 360, 500, 368, 500, 368, 504, 360, 508, 360, 508, 360, 504, 360, 504, 364, 504, 364, 504, 364, 504, 360, 500, 364, 508, 360, 508, 360, 500, 364, 504, 364, 500, 1236, 500, 360, 500, 368, 496, 372, 500, 364, 500, 368, 504, 364, 496, 372, 496, 368, 500, 364, 500, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 372, 492, 372, 496, 368, 496, 372, 496, 1240, 504, 1228, 504, 356, 504, 368, 496, 368, 496, 372, 496, 372, 496, 368, 496, 372, 496, 372, 492, 372, 496, 372, 492, 1244, 500, 1232, 500, 360, 500, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 368, 496, 372, 496, 372, 496, 368, 496, 372, 496, 368, 500, 1236, 496, 368, 500, 368, 496, 368, 500, 368, 496, 368, 500, 1240, 492, 1240, 492, 368, 500, 368, 496, 372, 496, 368, 500, 368, 496, 368, 500, 368, 496, 1240, 496, 368, 496, 368, 500, 368, 496, 372, 496, 368, 500, 368, 496, 372, 496, 368, 496, 368, 500, 1240, 492, 1240, 496, 368, 496, 1240, 492, 368, 500, 1240, 492, 368, 500} //desliga ar
};

unsigned int irBuf[200];

void sendir(int i) {
  memcpy_P ( irBuf, &irTable[i][0], 583 * 2);
  irsend.sendRaw (irBuf, 583, 38);
}

void loop()
{

  while (Serial.available() > 0)
  {
    char recieved = Serial.read();
    inData += recieved;

    // Processar a mensagem a cada linha recebida
    if (recieved == '\n')
    {

      if (inData == "a\n") {
        sendir(0);
      }
      if (inData == "b\n") {
        sendir(1);
      }

      Serial.print(inData);
      inData = ""; // Limpar buffer recebido
    }
  }
}

Muitissimo obrigado pela força