#include <Servo.h>
Servo myservo;
int potpin = 0;
int val;
Servo myservo2;
int potpin2 = 0;
int val2;
void setup() {
// put your setup code here, to run once:
myservo.attach(9);
myservo2.attach(10);
}
void loop() {
// put your main code here, to run repeatedly:
val = analogRead(potpin);
val = map(val, 1023, 0, 0, 100);
myservo.write(val);
delay(15);
val2 = analogRead(potpin2);
val2 = map(val2, 1023, 0, 1023, 100);
myservo2.write(val2);
delay(30);
}