#include Servo myservo; int x_axis; int y_axis; int x2_axis; int y2_axis; int myservo_val; void setup () { myservo.attach(D12); pinMode(A0, INPUT); pinMode(A1, INPUT); myservo.attach(D13); pinMode(A2, INPUT); pinMode(A3, INPUT); myservo.attach(D14); pinMode(A0, INPUT); pinMode(A1, INPUT); myservo.attach(D15); pinMode(A2, INPUT); pinMode(A3, INPUT); } void loop () { x_axis = analogRead(A0); myservo_val = map(x_axis,0,4095,0,180); y_axis = analogRead(A1); myservo_val = map(y_axis,0,4095,0,180); x2_axis = analogRead(A2); myservo_val = map(x2_axis,0,4095,0,180); y2_axis = analogRead(A3); myservo_val = map(y2_axis,0,4095,0,180); myservo.write(myservo_val); }