Phase Correct PWM library?

Great!

And on a Mega 2560? I just tried the above Code with changing the ports

// Mega: Pin 13 and 4

const byte timer0OutputA = 13;
const byte timer0OutputB = 4;

But it did not work?

And to change the Timer from 0 to 1, simply change all "0" to "1" in the Code? (an the Pins to 12,11 on Mega)?

Thanks alot!