View attachment 49142
...
ir.Initialize(d1.D6, "ir_Decoded") 'receiver is connected to pin 6, GND and 5v (or 3.3v on ESP8266)
ir.Enable
pinbtn.Initialize(d1.D1, pinbtn.MODE_INPUT_PULLUP) ' pin 3
pinbtn.AddListener("StateChangedSub")
irsend.Enable(d1.D2, 38) 'frequency = 38khz pin 4
...
I use d1.D1 and d1.D2 for pins 3 & 4 because this is how my Chinese Wemos D1 likes it...
It works in the application but not for the accessory...
When I use irsend.SendNEC it works (a TV) but not with the RawBuffer. I guess there are more parameters involved. Actually I am not going to use anything like controlling my AirCondition or TV away from home, so I put this issue aside.
Thank you