Servo write - variable

I can make 18 work on the mega. Maybe more is possible.