12-02-2015 10:09 AM
I am getting the following error when I try to upload or verify the "LIFA_Base" firmware to a Mega 2560 board.
Arduino: 1.7.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^
Error compiling.
Is there a newer file for the new Arduino IDE software?
Solved! Go to Solution.
12-02-2015 09:03 PM
Hi Plumbob.
I had the same problem, let me tell you how I fixed that trouble.
1.- Look for, in the "C:\Program Files (x86)\Arduino\libraries\RobotIRremote\" folder, the following files:
IRremote.cpp
IRremote.h
IRremoteTools.cpp
IRremoteTools.h
2.- Move them (cut and paste) in another place, for example in your Desktop or in another folder in "My Documents". The goal is to move the files showed above from the RobotIRremote folder to another location.
3.- Try to Upload the codeone more time.
Please, let me know if you can solve your problem with the solution I told you and check the "Right answer" button to rate the answer.
Regards
12-03-2015 09:30 AM
I first installed an older version of Arduino softwae, 1.0.5 r2 and that solved the problem. Then I reinstalled the latest Arduino software 1.6 and removed the files as suggested by daniel, and that also fixed the problem and is the prefered way since 1.0.5 is no longer supported. Thank you
12-03-2015 10:26 PM
LIFA is no longer supported by its creator. LINX is the replacement for LIFA and is actively being developed. If possible, I'd recommend that you switch to using LINX instead.
10-26-2018 12:47 PM
Valeu