IRremote库如何在Atmega16上使用?
我选择了个atmega16的板子。然后用最简单的IRsendDemo进行测试。然后编译出错。
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:227: error: 'TCCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:227: error: 'COM2B1' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:235: error: 'TCCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:235: error: 'COM2B1' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:253: error: 'TIMSK2' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:263: error: 'TCCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:263: error: 'TCCR2B' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:263: error: 'WGM22' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:263: error: 'OCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:263: error: 'OCR2B' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:279: error: 'TCCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:279: error: 'TCCR2B' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:279: error: 'OCR2A' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:282: error: 'TIMSK2' was not declared in this scope
D:\arduino-1.0.5\libraries\IRremote\IRremote.cpp:282: error: 'OCIE2A' was not declared in this scope
哪位朋友知道怎么修改下让atmega16的片子能用吗? 是因为mega16不能完成328的功能吗? 貌似支持ATmega8的Pin9,但没听说支持mega16 你可以研究下库文件中的定时器设定部分
页:
[1]