Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Lenny Littlewood 2012
- #include <Servo.h>
- Servo servo1;
- Servo servo2;
- Servo servo3; //create 3 servos
- int pos;
- void setup()
- {
- servo1.attach(9);
- servo2.attach(10);
- servo3.attach(11);
- }
- void loop()
- {
- servo1.write(180);
- servo2.write(180);
- servo3.write(180);
- delay(500);
- servo1.write(0);
- servo2.write(0);
- servo3.write(0);
- delay(1000);
- }
Add Comment
Please, Sign In to add comment