#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int totalColumns = 20;
int totalRows = 4;
LiquidCrystal_I2C lcd(0x27, 20, 4);
String staticMessage1 = "HI!";
String scrollingMessage = "Our program offers six specializations to choose from:";
void scrollMessage(int row, String message, int delayTime, int totalColumns) {
for (int i=0; i < totalColumns;
i++) {
message = " " + message; } message = message + " ";
for (int position = 0; position < message.length(); position++) { lcd.setCursor(0, row);
lcd.print(message.substring(position, position + totalColumns));
delay(delayTime);
} } void setup(){
lcd.init();
lcd.backlight();
} void loop(){
lcd.setCursor(9, 0);
lcd.print(staticMessage1);
delay(1000);
lcd.setCursor(6,1); // move the curos to second row
lcd.print("I'M INNO"); //display a string
delay(800); // add delay of 1 second // clear the screen
lcd.setCursor(2,2); // move the curos to second row
lcd.print("Mabuhay MINSUans!"); //display a string
delay(2000); // add delay of 1 second
lcd.clear(); // clear the screen
lcd.setCursor(6,0); // move the curos to second row
lcd.print("Welcome"); //display a string
delay(1000); // add delay of 1 second
lcd.setCursor(8,1); // move the curos to second row
lcd.print("to"); //display a string
delay(800); // add delay of 1 second
lcd.setCursor(3,2); // move the curos to second row
lcd.print("BTVTED & BTLED"); //display a string
delay(900); // add delay of 1 second
lcd.setCursor(5,3); // move the curos to second row
lcd.print("DEPARTMENT"); //display a string
delay(800); // add delay of 1 second
lcd.clear(); // clear the screen
scrollMessage(0, scrollingMessage, 250, totalColumns);
delay(2800);
lcd.setCursor(5,1); // move the curos to second row
lcd.print("AUTOMOTIVE"); //display a string
lcd.setCursor(5,2); // move the curos to second row
lcd.print("TECHNOLOGY"); //display a string
delay(2600);
lcd.setCursor(0,1); // move the curos to second row
lcd.print(" DRAFTING "); //display a string
lcd.setCursor(5,2); // move the curos to second row
lcd.print("TECHNOLOGY"); //display a string
delay(2200);
lcd.setCursor(5,1); // move the curos to second row
lcd.print("ELECTRICAL"); //display a string
lcd.setCursor(5,2); // move the curos to second row
lcd.print("TECHNOLOGY"); //display a string
delay(1800);
lcd.setCursor(4,1); // move the curos to second row
lcd.print("ELECTRONICS"); //display a string
lcd.setCursor(5,2); // move the curos to second row
lcd.print("TECHNOLOGY"); //display a string
delay(1500);
lcd.setCursor(0,1); // move the curos to second row
lcd.print("FASHION AND GARMENTS"); //display a string
lcd.setCursor(5,2); // move the curos to second row
lcd.print("TECHNOLOGY"); //display a string
delay(1200);
lcd.setCursor(0,1); // move the curos to second row
lcd.print(" FOOD SERVICE "); //display a string
lcd.setCursor(3,2); // move the curos to second row
lcd.print("AND MANAGEMENT"); //display a string
delay(1000);
lcd.clear();
delay(1000);
lcd.setCursor(5,1); // move the curos to second row
lcd.print("ARAT NA!!!"); //display a string
delay(2000);
lcd.clear(); // clear the screen
delay(1000);
}