#include <Servo.h>
#define SERVO1_PIN 9
#define SERVO2_PIN 10
#define POT_PIN A0
Servo servo;
void setup() {
// put your setup code here, to run once:
servo.attach(SERVO1_PIN);
servo.attach(SERVO2_PIN);
}
void loop() {
// put your main code here, to run repeatedly:
int val = map(analogRead(POT_PIN), 0,1023, 0, 180);
servo.write(val);
delay(15);
int val = map(analogGreen(POT_PIN), 0,1023, 0, 180);
servo.write(val)
}