Servo Program Help

Is this a continuous servo?

If not, servo.write() is limited from 0 to 180 degrees. Also, it sets a servo position, so if you send two commands with the same value you have no way of knowing if the second command is run.

Try this:

myservo.write(45);
delay(100);
myservo.write(135);