While i am running this simple code on my arduino IDE 1.0.5:
#include <IRremote.h>
int IRpin = 11;
IRrecv irrecv(IRpin);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value, DEC); // Print the Serial 'results.value'
irrecv.resume(); // Receive the next value
}
}
I am getting this error :
Decode_IR:28: error: 'IRrecv' does not name a type
Decode_IR:29: error: 'decode_results' does not name a type
Decode_IR.ino: In function 'void setup()':
Decode_IR:34: error: 'irrecv' was not declared in this scope
Decode_IR.ino: In function 'void loop()':
Decode_IR:39: error: 'irrecv' was not declared in this scope
Decode_IR:39: error: 'results' was not declared in this scope
Your sketch compile without error on my IDE.
On my pc:
H:\Arduino_projects\LIBRARIES\IRremote
and not under H:\Arduino\arduino-IDE\libraries
as you have said @PaulS and @Arrch