/*
Programa para revisao da turma DS304;
by SLMM
13.02.23
*/
//criar as definicoes a serem utilizadas
#include <LiquidCrystal.h> //Inclusao de Bibilioteca
LiquidCrystal lcd(12, 11, 5 , 4 , 3 ,2); // PORTAS DO ARDUINO QUE SÃO UTILIZADAS
int valor = 0;
void setup()
{
lcd.begin(16,2); //SETA A QUANTIDADE DE COLUNAS(16) E O NÚMERO DE LINHAS(2) DO DISPLAY. EM SUMA: UMA MATRIZ DE 16 COLUNAS E 2 LINHAS
//pinMode(6,OUTPUT); // DECLARA QUE O PINO 6 É UMA SAÍDA
}
void loop()
{
valor = analogRead(A0); //Reads the value on Potentiometer (range: 0 - 1023)
lcd.print("Arduino");
delay(3000);
lcd.setCursor(2,1);
lcd.print("LCD Tutorial");
delay(3000);
lcd.clear(); //clears the display
lcd.blink();
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
delay(4000);
lcd.noCursor();
lcd.clear();
lcd.print("Aula de DS304");
// put your main code here, to run repeatedly:
}