求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: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
页:
[1]