ir

You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Just post up if you have any questions.

    I haven't had a chance to try this out, but if you upload this function to the Puck:

    function pronto(d) {
      var a=d.trim().split(" ").map(x=>parseInt(x,16)); 
      var freq = 4145146/a[1];
      Puck.IR(a.slice(4).map(x=>1000*x/freq));
    }
    

    Then you should be able to use 'Pronto Hex' codes. For instance for the LG power button.

    You could use the codes off of http://irdb.tk/find/ and could do:

    pronto("0000 006C 0022 0002 015B 00AD 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 06FB 015B 0057 0016 0E6C");
    

    Or you could just run this code in a browser window on your PC:

    function fromPronto(d) {
      var a=d.trim().split(" ").map(x=>parseInt(x,16)); 
      var freq = 4145146/a[1];
      console.log(a.slice(4).map(x=>(1000*x/freq).toFixed(1)).toString());
    }
    

    and it'll give you the numbers you need to put into Puck.IR

About

Avatar for Gordon @Gordon started