The code is an expansion of the default TX/RX example program to use with the remote. I'm trying to have one remote button (PlumGeek Button) be a "missile launch" button. When a Wink receives the command, it should flash red and beep, then transmit a predefined value:
Code: Select all
I extended the IR_* definitions by one and modified WinkHardware to treat this like a new kind of key. Wink transmits the code, and any other Wink that receives it, would perform the given response (spin and beep, in my example).
All this works well enough for now. That's not the issue. The issue is that as soon as I have Wink1 transmit the code, Wink1's buzzer stops working. No sound. It's easy for me to demonstrate repeatably on two different Winks, that after poweron, I can honk (X button), then press the PLUBGEEK button (red flash and beep), then try to honk again (X button). Honks before. Doesn't honk after! Reset, repeat. Works...doesn't work.
Somehow, as long as I don't use the TXIRKey() function, I can use all the other keys to spin and honk, etc. But as soon as I use the TXIRKey() function, that somehow interferes with the buzzer operation. I'm guessing there is some base-hardware/software variable or something that gets corrupted. I can think of no easy answer for why this operation disconnects the buzzer.