How to send an IR signal automatically

hi I want to send a specific code from an IR LED (25FC523 for example). In the "IRremote" library i found a code that can send it, but each time i have to type a character in the serial. how can i make the IR led to send the code every 500 ms ??

Please read and follow the instructions in "How to use this forum".

Simple code:

void setup() {
  

}

void loop() {
  

  //send IR signal
  delay(500); // 0,5 sec
}

Advanced version:

const unsigned long sendInterval = 500; // set send interval 0,5 sec

unsigned long sendTimer = millis();

void setup() {


}

void loop() {
  

  if ((millis() - sendTimer) >= sendInterval) {  //send interval 0,5 sec

    //send IR signal

    sendTimer = millis();
  }
}