#include <Servo.h>
Servo myServo; // Create a servo object
void setup() {
myServo.attach(3); // Attach the servo to the pin
}
void loop() {
for (int i=0;i<=180;i++){
myServo.write(i);
delay(50);
}
}
#include <Servo.h>
Servo myServo; // Create a servo object
void setup() {
myServo.attach(3); // Attach the servo to the pin
}
void loop() {
for (int i=0;i<=180;i++){
myServo.write(i);
delay(50);
}
}