//SCIRCUITO ARDUINO 1 R3 CON UN SERVOMOTOR
#include<Servo.h>
Servo servomotor1;//creamos una variable del tipo servo
Servo servomotor2;//creamos una variable del tipo servo
void setup() {
// put your setup code here, to run once:
servomotor1.attach(11);
servomotor2.attach(10);
}
void loop() {
// put your main code here, to run repeatedly:
servomotor1.write(0);
servomotor2.write(180);
delay(1000);
servomotor1.write(90);
servomotor2.write(90);
delay(1000);
servomotor1.write(180);
servomotor2.write(0);
delay(1000);
}