I am currently using the following code
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}
The Serial Monitor is always returning "FFFFFFFF" no matter which button I press. So I am unable to replicate the signal.
Seems that the IR library doesn't support my LG remote.
How do I save and replicate the signal in this case?
irrecv.decodeLG(&results)
if (irrecv.decodeLG(&results))
and am getting the following error msg while complilng.