Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h>
- Servo myservo; // create servo object to control a servo
- int potpin = A0; // analog pin used to connect the potentiometer
- int val; // variable to read the value from the analog pin
- void setup() {
- myservo.attach(6); // attaches the servo on pin 9 to the servo object
- }
- void loop() {
- myservo.write(25);
- delay(7000);
- myservo.write(47);
- delay(6079);
- }
Add Comment
Please, Sign In to add comment