I would suggest placing the code to flip the pin back to an output at the very end of the TxIR function just before the closing curly. I would suggest leaving the ModulateIR function unchanged, as that function actually controls the internal registers to turn on and off the internal PWM peripheral on the chip. If you do it at the end of TxIR, that PWM action should be all finished by that point. If you discover this works and the buzzer doesn't make strange sounds during IR transmitting (which I don't think it can), let me know and I'll update the TxIR function on our end so the next release of the Base Sketch has this resolved.
Good catch again. 
Statistics: Posted by Kevin — Wed Apr 27, 2016 2:50 am
]]>