#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C myLCD(0x27,16,2);
int potenziometro1=A0;
int ValPot;
int ValPotPerc;
void setup() {
// put your setup code here, to run once:
pinMode(potenziometro1, INPUT);
Serial.begin(9600);
myLCD.init();
myLCD.setBacklight(HIGH);
myLCD.setCursor(0,0);
myLCD.print("Ciao");
delay(1000);
myLCD.clear();
}
void loop() {
// put your main code here, to run repeatedly:
valPot1=analogRead(potenziometro1);
valLed1= map(valPot1,0,1023,0,255);
myLCD.setCursor(0,0);
myLCD.print("Ciao");
delay(1000);
myLCD.clear();
}