system
June 6, 2012, 10:11am
1
Can someone send to me an infrared library for arduino 1.0.1,
I tried to download from this web site A Multi-Protocol Infrared Remote Library for the Arduino and changed the :
#include <WProgram.h>
to
#include <Arduino.h>
in IRRemoteInt.h.
but it is still doesn't working.
Thanks.
system
June 6, 2012, 10:27am
4
Try reading section 6:
"6. Getting help on the forum"
system
June 6, 2012, 10:58am
5
the library name suppose to be colored in orange.
and it means that the library file is not good.
system
June 6, 2012, 11:33am
6
the library name suppose to be colored in orange.
#######################################
# Syntax Coloring Map For IRremote
#######################################
#######################################
# Datatypes (KEYWORD1)
#######################################
decode_results KEYWORD1
IRrecv KEYWORD1
IRsend KEYWORD1
#######################################
# Methods and Functions (KEYWORD2)
#######################################
blink13 KEYWORD2
decode KEYWORD2
enableIRIn KEYWORD2
resume KEYWORD2
enableIROut KEYWORD2
sendNEC KEYWORD2
sendSony KEYWORD2
sendRaw KEYWORD2
sendRC5 KEYWORD2
sendRC6 KEYWORD2
#
#######################################
# Constants (LITERAL1)
#######################################
NEC LITERAL1
SONY LITERAL1
RC5 LITERAL1
RC6 LITERAL1
UNKNOWN LITERAL1
REPEAT LITERAL1
I don't see "IRremote" or "IRremoteInt" in there - do you have a different version of the keywords file?
system
June 6, 2012, 11:40am
7
system
June 6, 2012, 12:08pm
8
OK, I just downloaded that .zip, made the required change to the "IRremoteInt.h" header file, restarted the IDE and wrote a simple sketch.
#include <IRremote.h>
#include <IRremoteInt.h>
IRrecv backOfTheSofa(2); // dummy pin - no hardware
void setup ()
{}
void loop ()
{}
It all compiled (can't say if it worked, because I don't have hardware)
system
June 6, 2012, 12:22pm
9
Thanks man it is working.
system
June 30, 2012, 6:48pm
10
Hello, This might be a very dumb question, but what is "the required change to the IRremoteInt.h header file" ??
I can't get it to work either and I can't see how inons12 got it to work.
Thank you for any reply.