#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16,2);
lcd.init();
lcd.backlight();
lcd.print("hi");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
int val = analogRead(34);
lcd.setCursor(0,0);
lcd.println("Potentiometer =");
lcd.setCursor(0,1);
lcd.print(val);
delay(250);
}