that_one_nigga_you_k

golpe

Jan 31st, 2022
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Servo.h>
  2.  
  3. Servo myservo;  // create servo object to control a servo
  4.  
  5. int potpin = A0;  // analog pin used to connect the potentiometer
  6. int val;    // variable to read the value from the analog pin
  7.  
  8. void setup() {
  9.   myservo.attach(6);  // attaches the servo on pin 9 to the servo object
  10.  
  11.  
  12.  
  13. }
  14.  
  15. void loop() {
  16.   myservo.write(25);
  17.   delay(7000);
  18.   myservo.write(47);
  19.   delay(6079);
  20. }
Add Comment
Please, Sign In to add comment