#include <Servo.h>
Servo myservoL;
Servo myservoR;
int myservo = 2;
int myAngle;
int pulseWidth;
void setup()
{
pinMode(myservo, OUTPUT);
myservoL.attach(9);
myservoR.attach(10);
}
void servoPulse(int myservo, int myAngle)
{
pulseWidth = (myAngle *10) + 600;
digitalWrite(myservo, HIGH);
delayMicroseconds(pulseWidth);
digitalWrite(myservo, LOW);
}