here is the sketch i used:
#include <Servo.h>
Servo myvictor;
int pos = 0;
void setup()
{
myvictor.attach(9);
}
void loop() {
delay(1000);
for(pos = 0; pos < 180; pos += 1) {
myvictor.write(pos);
delay(50);
}
myvictor.write(90);
delay(5000);
}
yes, it is very similar to to the one WizenedEE posted