#include <Servo.h>
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
int pot1Pin = A0;
int pot2Pin = A1;
int pot3Pin = A2;
int pot4pin = A3;
int pos1, pos2, pos3, pos4;
void setup(){
servo1.attach(9);
servo2.attach(10);
servo3.attach(11);
servo4.attach(12);
}
void loop(){
pos1 = map(analogRead(pot1Pin), 0, 1023, 0, 180);
pos2 = map(analogRead(pot2Pin), 0, 1023, 0, 180);
pos3 = map(analogRead(pot3Pin), 0, 1023, 0, 180);
pos4 = map(analogRead(pot4pin), 0, 1023, 0, 180);
servo1.write(pos1);
servo2.write(pos2);
servo3.write(pos3);
servo4.write(pos4);
delay(3);
}