Go Down

Topic: IR-Remote with Arduino Uno Rev3, Libraries (Read 1 time) previous topic - next topic

PaulS

Quote
I've tried this, I still seem to get the same errors

Then, I'm sorry, but you did something wrong. That was all I needed to do do to make the code compile.

Do you have more than one copy of the IRRemote library?

NielsH

I've found an updated version of the same library, and it seems to work now...
(though I can't remember where I found it)

Thanks for the help,

NielsH

senghun

i write core for IRrec . can't compile
the code is
#include <IRremote.h>
#include <IRremoteInt.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
  }
}
##########################################
but can't compile cos error
the error
c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: sketch_mar29a.cpp.elf section .text will not fit in region text
c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: region text overflowed by 50 bytes
###########################################
can you solution this error for me .


PaulS

Quote
can you solution this error for me .

Did you really have the UNO selected in the Tools menu?

When I do, with your code, I get this "error":
Quote
Binary sketch size: 6,246 bytes (of a 32,256 byte maximum)

Go Up