#include <LiquidCrystal.h> //INCLUSÃO DE BIBLIOTECA
int valor = 0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //PORTAS DO ARDUINO QUE SÃO UTILIZADAS PELO DISPLAY LCD
void setup() {
lcd.begin(16,2);
}
void loop() {
valor = analogRead(A0); // le o valor do Pot 0 - 1023
// lcd.setCursor(0, 0);
// lcd.print("Aula de DS304");
lcd.print("Arduino"); // Prints "Arduino" on the LCD
delay(3000); // 3 seconds delay
lcd.setCursor(2,1); // Sets the location at which subsequent text written to the LCD will be displayed
lcd.print("LCD Tutorial");
delay(3000);
lcd.clear(); // Clears the display
lcd.blink(); //Displays the blinking LCD cursor
delay(4000);
lcd.setCursor(7,1);
delay(3000);
lcd.noBlink(); // Turns off the blinking LCD cursor
lcd.cursor(); // Displays an underscore (line) at the position to which the next character will be written
delay(4000);
lcd.noCursor(); // Hides the LCD cursor
lcd.clear(); // Clears the LCD scree
}