#include <Servo.h>
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
void setup() {
// put your setup code here, to run once:
servo1.attach(6);
servo2.attach(9);
servo3.attach(10);
servo4.attach(11);
}
void loop() {
// put your main code here, to run repeatedly:
int a=analogRead(A0);
int x=map(a,0,1023,0,180);
int b=analogRead(A1);
int y=map(b,0,1023,0,180);
int c=analogRead(A2);
int z=map(c,0,1023,0,180);
int d=analogRead(A3);
int w=map(d,0,1023,0,180);
servo1.write(w);
servo2.write(z);
servo3.write(y);
servo4.write(x);
delay(1000);
}