mpmcws

Posiziona a 90 gradi

Jun 15th, 2018
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* By MPMC 2017 open source
  2. */
  3.  
  4. #include <Servo.h>
  5. Servo myservo;  // create servo object to control a servo
  6. // twelve servo objects can be created on most boards
  7. int pos = 90;    // variable to store the servo position
  8. void setup() {
  9.   Serial.begin(9600);
  10.   myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  11. }
  12. void loop() {
  13.   myservo.write (90);
  14. }
RAW Paste Data