Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IR LIBRARY
17-05-2014, 08:03 AM,
RE: IR LIBRARY
Hello, I'm from Venezuela and I wanted to ask, because it gives me error IrRemote the library?

the error is, for example, using this code:

#include <IRremote.h>
int RECV_PIN = 22; // can be any digital pin
int ledpin = 14;

decode_results results;

void setup()
{
pinMode(ledpin,OUTPUT);
IRremote.enableIRIn(RECV_PIN); // Start the receiver
IRremote.blink(true);
}

void loop()
{
if (IRremote.decode(&results))
{

if (results.value == 0x1C || results.value == 0x81C) { // UP ARROW
digitalWrite(ledpin,HIGH);
}
if (results.value == 0x176 || results.value == 0x976 ){ // TURN OFF
digitalWrite(ledpin,LOW);
}
IRremote.resume(); // Receive the next value
}
}

gives me the error:

compiling...
error line 68 No such file or directory

error line 69 No such file or directory

error line 11 Undefined identifier 'IRremote'

error line 11 Structure/Union expected left of '.->'

error line 12 Undefined identifier 'IRremote'

error line 12 Structure/Union expected left of '.->'

error line 17 Undefined identifier 'IRremote'

error line 17 Structure/Union expected left of '.->'

error line 26 Undefined identifier 'IRremote'

error line 26 Structure/Union expected left of '.->'

error while compiling

could help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)