Does anyone of you know how to handel the code that T5 (Pin47) on Arduino Mega is controlled the same wise as T1 (Pin5) on Arduino Uno.
Use pin 47 and change all references to Timer1 to Timer5. Every capitalized timer reference needs to be changed. For example TCCR1A = 0 should be changed to TCCR5A = 0;
but I'm not able to get it run
What did you try?