Advertisement
Guest User

Untitled

a guest
Mar 31st, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <Servo.h>
  2.  
  3. Servo myservo;
  4.  
  5. void setup()
  6. {
  7.   myservo.attach(4);
  8.   myservo.writeMicroseconds(0);
  9. }
  10.  
  11. void loop() {
  12.   myservo.writeMicroseconds(2000);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement