#include <Servo.h>
int tala;
Servo myservo;
void setup() {
myservo.attach(11);
Serial.begin(9600);
tala = 0;
myservo.write(0);
Serial.println("0");
delay(1500);
myservo.write(60);
Serial.println("60");
delay(1500);
myservo.write(180);
Serial.println("180");
delay(1500);
}
void loop() {
for(tala=180;tala >=0; tala -=2){
myservo.write(tala);
Serial.println(tala);
delay(1500);
}
myservo.write(90);
Serial.println("90");
delay(1500);
myservo.write(180);
Serial.println("180");
delay(1500);
}