#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
}
}
I constantly get this error “error: ‘TKD2’ was not declared in this scope”
I did a research and it seems it is a common problem
I tried a few things but nothing works
Are there any suggestions?