2014-4-16 23:02:56 [显示全部楼层]
5731浏览
查看: 5731|回复: 1

[已解决] 求Romeo v2红外接收库与范例,谢谢!

[复制链接]
求Romeo v2红外接收库与范例,谢谢!原先用UNO的时候,红外接收和发射一切正常,现在换成Romeo v2后,出现C:\Program Files\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5: error: 'TKD2' was not declared in this scope,谢谢帮助!

Youyou  初级技匠

发表于 2014-4-17 18:57:33

本帖最后由 Youyou 于 2014-4-17 18:58 编辑

你好,请试下附件中的红外库,你应该用的是比较老的,对Leonardo兼容性有些问题。
此库自身的样例用Arduino UNO和Arduino Leonardo编译通过。
-By default in the UNO board, use the Timer 2 and the pin 3 for IR output.
-By default in the Leonardo board, use the Timer 4 and the pin 13 for IR output.
-If you change the IRremote.h file for use Timer 1 in (__AVR_ATmega32U4__) part the IR output is pin 9.
参考:http://forum.arduino.cc/index.php?topic=122013.0
http://www.righto.com/2009/08/mu ... remote-library.html

Arduino-IRremote-master.zip

33.43 KB, 下载次数: 673

回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail