At the moment the Puck.IR function can't have pins specified for it. I have an issue filed to add it, but as I said above it should be as easy as using normal Espruino IR code. Something like this should work:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, it was never designed for long range.
At the moment the Puck.IR function can't have pins specified for it. I have an issue filed to add it, but as I said above it should be as easy as using normal Espruino IR code. Something like this should work:
Just stick the IR LED on any 2 data bits and call the above with the 2 pins + data.