求助
2016-01-042.5万
AI 快速预览详细
本文解决了在Arduino Uno板上使用IRremote库时遇到的编译错误问题。具体错误是`'TKD2' was not declared in this scope`。通过将`int RECV_PIN = TKD2;`改为`int RECV_PIN = 11;`,可以解决该错误。这个简单的修改可以让您的Arduino项目顺利进行,避免了长时间的调试和排查。
|
下载了IRremote 验证结果报错 Arduino:1.6.5 (Windows 8.1), 板:"Arduino/Genuino Uno" 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 ^ 编译有误。 报告将会包含更多的信息 "在编译时,输出详细信息" 在 文件>首选项 中启用 |



