#include <LiquidCrystal_I2C.h>
#include <ESP32Servo.h>
const int servoPin18 = 18;
const int servoPin19 = 19;
Servo servo2;
Servo servo4;
#define I2C_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_LINES 2
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
int pot1,pot2 = 0;
pot1 = analogRead(2);
pot2 = analogRead(4);
pot1 = map(pot1,0,4095,0,180);
pot2 = map(pot2,0,4095,0,180);
lcd.setCursor(0, 0);
lcd.print("POT1 = ");
lcd.print(pot1);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print("POT2 = ");
lcd.print(pot2);
lcd.print(" ");
delay(200);
}