// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}