#include <Servo.h>
Servo myservo;
Servo mysecondservo;
void setup() {
myservo.attach(3) // attaches a servo connected to pin 3
mysecondservo.attach(15) // attaches a servo connected to pin 15
}
void loop() {
myservo.write(180); // sets the servo position at 180 degrees
mysecondservo.write(65); // sets the servo position at 65 degrees
}
|