Servo not rotating 180degrees.

I understand, but the servo.writeMicroseconds(uS) command is fairly new to me. Is it possible that you could send me a sketch on how to find the end points?
-thanks