#define LED 3
#define POTENTIOMETER A0
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
lcd.init();
lcd.backlight();
lcd.setCursor(1,0);
lcd.print('halo');
}
void loop() {
// put your main code here, to run repeatedly:
int value = analogRead(POTENTIOMETER);
int brightness = value;
analogWrite(LED, brightness);
}