Saltar la navegación

Servo varios giros consecutivos

Servo varios giros consecutivos

#include <Servo.h>

Servo myservo;

void setup() {
myservo.attach(9);
}

void loop() {
myservo.write(0);
delay(1000);
myservo.write(30);
delay(1000);
myservo.write(60);
delay(1000);
myservo.write(90);
delay(1000);
myservo.write(120);
delay(1000);
myservo.write(150);
delay(1000);
myservo.write(180);
delay(1000);
}