Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <Servo.h>
  2. int blue = 9;
  3. Servo myservo;
  4.  
  5. void setup()
  6. {
  7. pinMode(blue, OUTPUT);
  8. }
  9.  
  10. void loop() {
  11. myservo.attach(8);
  12. myservo.write(110);
  13. digitalWrite(blue, HIGH);
  14. delay(500);
  15. myservo.write(80);
  16. digitalWrite(blue, LOW);
  17. delay(500);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement