The code i am using is https://github.com/z3t0/Arduino-IRremote/blob/master/examples/IRsendDemo/IRsendDemo.ino
Although this worked yesterday, it doesn't seem to work now. I was able to turn on and off my TV yesterday but the led is not even blinking now. I checked led, its working.
After hours of trying to make it work I tried different library. https://github.com/cyborg5/IRLib2/blob/master/IRLib2/examples/send/send.ino
Surprisingly this seems to work but the code is a bit complicated for receiver.
I want to use the first library. Any help is appreciated. Thank you.