SHARE
TWEET

Untitled

a guest Oct 14th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top