#include <Servo.h>
Servo Servo1 ;
Servo Servo2 ;
void setup()
{
Servo1.attach(11);
Servo2.attach(6);
Servo1.write(0);
Servo2.write(0);
}
void loop()
{
int vert = analogRead(A5);
int hori = analogRead(A4);
int joyvert = map(vert,0,1023,0,180);
int joyhori = map(hori,0,1023,0,180);
Servo1.write(joyvert);
Servo2.write(joyhori);
delay(500);
}