Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h> //inclusão da biblioteca servo
- Servo myservo; //nomeando o servo
- void setup()
- {
- myservo.attach(9); //Pino de conexão servo+arduino
- myservo.write(0); //Servo com valor setado zero
- }
- void loop()
- {
- myservo.write(100);
- delay(1500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement