Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h>
- Servo myservo1;
- int pos1 = 90;
- void setup() {
- checkSW();
- myservo1.attach(A1);
- delay(3000);
- }
- void loop() {
- myservo1.write(90);
- delay(3000);
- myservo1.write(45);
- delay(3000);
- myservo1.write(0);
- delay(3000);
- myservo1.write(45);
- delay(3000);
- myservo1.write(90);
- delay(3000);
- myservo1.write(135);
- delay(3000);
- myservo1.write(180);
- delay(3000);
- myservo1.write(135);
- delay(3000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement