#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C hot1(0x27,20,4);
LiquidCrystal_I2C hot2(0x3F,20,4);
void setup() {
pinMode(A0, INPUT);
pinMode(A1, INPUT);
hot1.begin(20,4);
hot2.begin(20,4);
}
void loop() {
POT();
val();
hot();
hot1.setCursor(13,0);
hot1.print("+");
hot1.setCursor(13,1);
hot1.print("/");
hot2.print("enter the password");
}
void POT() {
hot1.backlight();
hot1.setCursor(0,0);
hot1.print("POT1");
hot1.setCursor(0,1);
hot1.print("POT2");
}
void val() {
float x = analogRead(A0);
float z = analogRead(A1);
hot1.setCursor(5,0);
hot1.print(x);
hot1.setCursor(5,1);
hot1.print(z);
}
void hot() {
float x = analogRead(A0);
float z = analogRead(A1);
float call = x + z;
float sall = x / z;
hot1.setCursor(5,2);
hot1.print(call);
hot1.setCursor(5,3);
hot1.print(sall);
}