I recently got some XBee stuff (including an Adafruit adapter) and I have a question. But before, a short explanation :

The goal is to replace the infrared communication of a remote with a radio communication with a XBee module (and a XBee receiver of course). For that sake there is a quick and dirty solution that would consist into wiring some buttons of the remote directly into some XBee pins, but this is quite limited as you can guess. The clever solution (I've found so far) would be to plug the Xbee directly on a pin of the IR LED emitter... Depending of the button pressed, the IR LED emits a "pulsatile" signal, this pulsation is different depending on the pressed button... And you see my question coming now :

Would someone have a trick / or any idea / suggestion, to get this pulsation directly "parsed" into the XBee, so that the Xbee can guess what was the button pressed ? Or any other trick to take somewhere on the remote chip a relevant info about the pressed button ?

"The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent of the development time" - Tom Cargill