RECV_PIN = TKD2 error solution

Solution for below error :- 

------------------------------

Arduino: 1.6.11 (Windows 7), Board: "Arduino/Genuino Uno"
C:\Program Files\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
                ^
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

------------------------------
Solution for the error :-  int RECV_PIN = TKD2

STEP 1:- Navigate to the folder where Arduino Library RobotIRremote is installed. In my case its path is  C:\Program Files\Arduino\libraries\RobotIRremote\src


STEP 2:-  In src folder you can see a file naming [IRremoteTools.cpp] , rename this file to   [ IRremoteTools.cppx ]

STEP 3:- Restart your project and upload your sketch 

STEP 4:- comment below ,to let us know if this tweak works or not 



Incoming Search Terms:-

RECV_PIN = TKD2 error
'TKD2' was not declared in this scope

IRremoteTools.cpp:5:16: error

No comments:

Post a Comment