IRremote.h 这个红外调用功能好像和其它的PWM接口有冲突
如果我使用这了个红外功能,调用其它的Pin,用PWM时系统就死掉了,如果我把红外这部分去掉,系统就运行正常了,大家在使用时有没有碰到这样的问题呀,怎么解决。 这个是用了pin3的PWM呀,跟其他不应该冲突呀
本帖最后由 pizg 于 2014-3-9 15:09 编辑
我用了 IRremote Library 和 tone() 也衝突了,
上載程式時會出現下列訊息:
core.a(Tone.cpp.o): In function `__vector_7':
D:\arduino-1.0.5\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
IRremote\IRremote.cpp.o:\arduino-1.0.5\libraries\IRremote/IRremote.cpp:311: first defined here
我大概知道是 IRremote 和 tone() 都使用 Timer 2, 兩個相互衝突了,
不知該如何解決。
页:
[1]