Hi,
I'm using Visual Studio 2015, and I want to use the IR remote library described here:
http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html The test program looks like:
#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
}
}
Unfortunately, there is a name conflict.
The loaded file IRremote.h is not the one from this library that I installed on "D:\m1\soft\A\Arduino\Arduino-IRremote-master", but the one from "C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src", which is similar but older, and buggy:
Compiling 'IRLearn' for 'Arduino/Genuino Uno'
IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
Error compiling
I tried to change the include directory path in the project properties setting it to:
D:\m1\soft\A\Arduino\Arduino-IRremote-master;$(IncludePath)
but that does not help (see attached picture).
I'm missing probably something very obvious, any idea?
I also tried to set the include file with its full path, but that does not compile:
#include <D:\m1\soft\A\Arduino\Arduino-IRremote-master\IRremote.h>
IRLearn.ino:In function `loop
IRLearn.ino:decode(decode_results*)
IRLearn.ino:resume()
IRLearn.ino:In function `__static_initialization_and_destruction_0
IRLearn.ino:IRrecv(int)
collect2.exe*:error: ld returned 1 exit status
Error creating .elf