#include <Servo.h>
Servo motor;
Servo motor2;
int X;
int Y;
void setup() {
motor.attach(6);
motor2.attach(9);
}
void loop() {
X = analogRead(A0); //1023--520-480---0
Y = analogRead(A1);
motor.write(map(X,1023,0,0,180));
delay(15);
motor2.write(map(Y,1023,0,0,180));
delay(15);
}