#include <IRremote.h>
#define IR_PIN 2

long unsigned int codes[] = {0x20DF738C, 0x20DF33CC, 0x20DF9768, 0x20DF5BA4};
int numcodes = sizeof(codes) / sizeof(long unsigned int);

void setup()
{
  Serial.begin(115200);
  IrSender.begin(IR_PIN, false);
}

void loop()
{
  Serial.println("Startup");
  delay(1000);
  for (int i = 0; i < numcodes; i++) {
    Serial.print("Sending code ");
    Serial.println(int(i));
    for (int j = 0; j < 5; j++) {
      Serial.print("Repeating ");
      Serial.println(int(j));
      IrSender.sendNEC(codes[i], 32);
    }
    Serial.println("Waiting 5s");
    delay(5000);
  }
}