You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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:

    function IR(a,b,data) {
      analogWrite(a,0.9,{freq:38000});
      digitalPulse(b, 1, data);
      digitalPulse(b, 1, 0);
      digitalWrite(a,0);
    }
    

    Just stick the IR LED on any 2 data bits and call the above with the 2 pins + data.

About

Avatar for Gordon @Gordon started