使用 Arduino 1.5.x IDE 編譯有引用 IRremote 出現 error: ‘TKD2’ was not declared in this scope
使用 Arduino 1.5.x IDE 編譯有引用 IRremote
會出現以下錯誤
error: ‘TKD2’ was not declared in this scope
[Reasons 原因 ]
根據說明是 IRremoteTools 文件衝突造成
[Solution 解決方法]
有兩種解決方式
方式1 : 刪除IRremoteTools
刪除以下兩個檔案
/Applications/[Arduino_1_5_7_beta.app]/Contents/Resources/Java/libraries/RobotIRremote/src/IRremoteTools.h
/Applications/[Arduino_1_5_7_beta.app]/Contents/Resources/Java/libraries/RobotIRremote/src/IRremoteTools.cpp
方式2 : 重新命名套件名稱
找到檔案 [sketchbook Folder]/libraries/IRremote/ 資料夾下的
將 IRremote.h 更名為 AIRremote.h (可自定名稱)
IRremote.cpp 更名為 AIRremote.cpp
打開 AIRremote.cpp 檔案找到
#include "IRremote.h" #include "IRremoteInt.h"
更改為
#include "AIRremote.h" #include "IRremoteInt.h"
[參考資料]
arduino IDE 1.5.4 bug in communicating with labview
Error regarding Arduino 1.5.5 r2 #53
你好!我是個學生。我使用的是Arduino 1.0.6。我也出現到”TKD2″的ERROR出來,我也有follow 你兩個solution去做。
雖然TKD22沒有再出現,但出現了新的ERROR:
LabVIEWInterface:77: error: ‘IRsend’ does not name a type
LabVIEWInterface. ino: In function ‘void processCommand(unsigned char*)’:
就是出現了這三行ERROR出來
希望能解solve my problem.
LabVIEWInterface:542: error: ‘irsend’ was not declared in this scope
and i am using Ardunio board to connect with Arduino 1.0.6. Is any difference in here to make it wrong?
thank you very much
ARE YOU SOLVE YUOR PROBLEM?
YES