#include <LiquidCrystal.h>
LiquidCrystal lcd ( 7,8,9,10,11,12 );
void setup() {
lcd.begin(16,20);
}
void loop() {
for (int i = 0; i<3; i++){
lcd.setCursor(0,0);
lcd.print("ETEC-AF");
lcd.setCursor(16,0);
lcd.print("ETEC-AF");
delay(1000);
// scroll 13 positions (string length) to the left
// to move it offscreen left:
for (int p = 0; p < 7; p++) {
// scroll one position left:
lcd.scrollDisplayRight();
// wait a bit:
delay(150);
}
delay(1000);
// scroll 29 positions (string length + display length) to the right
// to move it offscreen right:
for (int positionCounter = 0; positionCounter < 7; positionCounter++) {
// scroll one position right:
lcd.scrollDisplayLeft();
// wait a bit:
delay(150);
}
}
lcd.clear();
delay(200);
lcd.setCursor(4,0);
lcd.print("Sitemas");
lcd.setCursor(3,1);
lcd.print("Embacados");
delay (500);
lcd.noDisplay();
delay(200);
lcd.display();
delay(200);
lcd.noDisplay();
delay(200);
lcd.display();
delay(200);
lcd.noDisplay();
delay(50);
lcd.clear();
lcd.display();
lcd.setCursor(6,0);
lcd.print("2P1");
lcd.setCursor(3,1);
lcd.print("2Bim - 2021");
delay (3000);
lcd.clear();
lcd.setCursor(15,0);
lcd.print("Carlos Barreira da Silva Farinhas");
for (int p = 0; p < 48; p++) {
// scroll one position left:
lcd.scrollDisplayRight();
// wait a bit:
delay(150);
}
lcd.clear();
delay(400);
lcd.setCursor(0,-5);
lcd.print("RM 123456");
for (int p = 0; p < 15; p++) {
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(150);
}
lcd.clear();
delay(400);
}
//delay(1000);