#include <Servo.h>
Servo Servo1;
Servo Servo2;
Servo Chapadlo;
int uhel1 = 0;
int uhel2 = 0;
int OpenClose = 0;
void setup() {
// put your setup code here, to run once:
Servo1.attach(10);
Servo2.attach(11);
Chapadlo.attach(9);
pinMode(A0, INPUT);
pinMode(A1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
uhel1 = map(analogRead(A0),0,1023,0,180);
Servo1.write(uhel1);
uhel2 = map(analogRead(A1),0,1023,0,180);
Servo2.write(uhel2);
}