from the IRLibTimer.h:
/* Arduino Mega */
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//#define IR_SEND_TIMER1 11
#define IR_SEND_TIMER2 9
//#define IR_SEND_TIMER3 5
//#define IR_SEND_TIMER4 6
//#define IR_SEND_TIMER5 46
Now the compiler shows an error with my code even though i wrote the code again entirely. The universe hates me. I'll try it again tomorrow. Thanks guys.
INTP:
Is your IR LED on pin 13?PS:
That's a problem. It needs to be on a PWM pin.
On Mega pins 2-13 are PWM. But I don't use pin 13 anyway