macpeterr:
Timer2 is also used by the stepper library,
I thought it was a servo you want to control. And in an Uno Timer1 is used by the Servo library. And there is a special ServoTimer2 library for those that need it.
If you really do need to use a hardware Timer just get it to produce an interrupt after every 20000 - W microsecs and in the ISR put the servo pin HIGH and set the next period to W. In the next ISR call set the pin LOW and set the period to 20000 - W.
I would just use the DigitalWriteFast library to set the pins high or low.
...R