#include <Servo.h>
int servoPin1=11;
int servoPin2=10;
Servo servo1;
Servo servo2;

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);


void setup() {
  Serial.begin(9600);
servo1.attach(servoPin1);
servo2.attach(servoPin2);

lcd.init();
  lcd.backlight();
}

void loop() {
 int potentiometer = analogRead(A0);
Serial.println(potentiometer);
delay(500);

int x= map(potentiometer, 0 , 1023 , 0 , 180);

int i= map(potentiometer, 0 , 1023 , 180 , 0);

servo1.write(x);
servo2.write(i);



{

  lcd.clear();
  lcd.print("angle_1:");
  lcd.setCursor(2,1);
  lcd.print( x );
    delay(80);

}

//lcd.clear();
  //lcd.print("angle_2:");
 // lcd.setCursor(2,1);
  //lcd.print( i );
    //delay(80);

}





//servo1.write(0);
//delay(2000);

//servo1.write(90);
//delay(2000);

//servo1.write(180);
//delay(2000);