Make Library compile for Arduino Leonardo

Replaced all TIMER2 to TIMER4 registers