IR REMOTE TRANSMITTER

IR transmitter

The code can be downloaded at:

https://github.com/triantara/ARDUINO-TRIANTARA/blob/main/IR%20TRANSMITTER.zip

// IR Transmitter …
#include <IRremote.h>
IRsend irsend;
void setup()
{
pinMode(7,INPUT); // button 1
pinMode(8,INPUT); // button 2
}
void loop() {
if (digitalRead(7) == HIGH){
irsend.sendNEC(0xAB123CDE, 32);//HEX number only
}
if (digitalRead(8) == HIGH){
irsend.sendNEC(0xAB571CDE, 32);//HEX number only
}
delay(10);
}