1//Xenon Static Fire 1 (No Feedback)//23#include <Servo.h>45Servo myservo;// create servo object to control a servo6// twelve servo objects can be created on most boards78int pos =0;// variable to store the servo position910voidsetup(){11 myservo.attach(2);// attaches the servo on pin 9 to the servo object1213}1415voidloop(){16for(pos =11; pos <=87.5; pos +=1.75){// goes from 0 degrees to 180 degrees17// in steps of 1 degree18 myservo.write(pos);// tell servo to go to position in variable 'pos'19delay(15);// waits 15ms for the servo to reach the position20}21for(pos =87.5; pos >=11; pos -=1){// goes from 180 degrees to 0 degrees22 myservo.write(pos);// tell servo to go to position in variable 'pos'23delay(15);// waits 15ms for the servo to reach the position24}25}26