I have LG remotecontroller and with KY0022
whenever I pressed power button on Remotecontroller and get code like below
81E2817E
FFFFFFFF
FFFFFFFF
FFFFFFFF
but How can I send above signal to turn on/off product?
My code to receive and send signal is as below.
#include <IRremote.h>
int RECV_PIN = 13;
int sw1 = 10;
IRrecv irrecv(RECV_PIN);
decode_results results;
IRsend irsend;
void setup()
{
Serial.begin(9600);
// In case the interrupt driver crashes on setup, give a clue
// to the user what's going on.
Serial.println("Enabling IRin");
irrecv.enableIRIn(); // Start the receiver
Serial.println("Enabled IRin");
}
void loop() {
delay(2000);
for (int i = 0; i < 3; i++) {
Serial.println("sending");
irsend.sendLG(81E2817E, 28); //SAMSUNG TV LED on/off (capturado con IRrecvDumpV2.ino)
delay(40);
}
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
delay(100);
}