• Your first line (D25,D26) produces result but not (D26,D26)!

    
    var cmds = {
    
    	// main menu top left - select
    	mainSelect: [
    9.0, 4.4, 0.6, 0.5, 0.6, 1.6, 0.6, 1.6, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 1.6, 0.6, 1.6, 0.6, 0.5, 0.6, 1.6, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 0.5, 0.6, 1.6, 0.6, 0.5, 0.6, 1.6, 0.6, 0.5, 0.6, 1.6, 0.6, 1.6, 0.6, 1.6, 0.6, 1.6, 0.6, 0.5, 0.6, 1.6, 0.6, 0.5, 0.6, 1.6, 0.6, 42.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6, 95.9, 9.0, 2.2, 0.6
    ]};
    
    /* received on the other end (D25,D26):
    4.4,0.5,0.6,0.5,1.6,0.5,1.6,0.6,0.5,0.5,­0.5,0.5,0.5,0.5,0.5,0.6,1.6,0.6,1.6,0.6,­0.5,0.6,1.6,0.6,0.5,0.6,0.5,0.6,0.5,0.6,­0.5,0.6,0.5,0.6,0.5,0.6,0.5,0.6,0.5,0.6,­0.5,0.5,1.6,0.6,0.5,0.6,1.6,0.6,0.5,0.6,­1.6,0.5,1.6,0.6,1.6,0.6,1.6,0.5,0.5,0.6,­1.6,0.6,0.5,0.6,1.6,0.6,42.9,8.9,2.3,0.5­,95.9,8.9,2.3,0.5,95.9,8.9,2.2,0.7,95.9,­8.9,2.2,0.7,95.9,8.9,2.2,0.6,95.9,9.0,2.­2,0.6,95.9,9.0,2.2,0.6,95.9,8.9,2.2
    0.2
    */
    

    I guess I will use D25,26 for transmission.

    A query: not sure why the first value is consistently missing (i.e. 9.0).

    Am I in fact transmitting the inverse pattern or am I just not understanding the IR protocol? (The definition file was captured (transmitted from a physical remote) using the same Receiver code, i.e. (from you!)

    function onInit() {
    
    	digitalWrite(D2, 0);
    	pinMode(D1, "input_pullup");
    	var d = [];
    	setWatch(function (e) {
    		d.push(1000 * (e.time - e.lastTime));
    	}, D1, {
    		edge: "both",
    		repeat: true
    	});
    
    
    	var lastLen = 0;
    	setInterval(function () {
    		if (d.length && d.length == lastLen) {
    			d.shift(); // remove first element
    			console.log(d.map(a => a.toFixed(1)).toString());
    			d = [];
    		}
    		lastLen = d.length;
    	}, 200);
    
    	setInterval(() => LED3.toggle(), 500);
    
    }
    
About

Avatar for user106712 @user106712 started