Alternate way to sweep the servo

Alternate way to sweep the servo