Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h>
- int blue = 9;
- Servo myservo;
- void setup()
- {
- pinMode(blue, OUTPUT);
- }
- void loop() {
- myservo.attach(8);
- myservo.write(110);
- digitalWrite(blue, HIGH);
- delay(500);
- myservo.write(80);
- digitalWrite(blue, LOW);
- delay(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement