Advertisement
RuiViana

Servo_Teste

Nov 13th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <Servo.h> //inclusão da biblioteca servo
  2.  
  3. Servo myservo; //nomeando o servo
  4.  
  5. void setup()
  6. {
  7. myservo.attach(9); //Pino de conexão servo+arduino
  8. myservo.write(0); //Servo com valor setado zero
  9. }
  10.  
  11. void loop()
  12. {
  13. myservo.write(100);
  14. delay(1500);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement