teks berjalan lcd i2c arduino



#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.init();
  lcd.backlight();
  lcd.setCursor(5,0);
  lcd.print("W");delay(1000); lcd.print("E");delay(500);
  lcd.print("L");delay(500); lcd.print("C");delay(500);
  lcd.print("O");delay(500); lcd.print("M");delay(500);
  lcd.print("E");delay(500);

  lcd.setCursor(2,1);
  lcd.print("B");delay(200); lcd.print("I");delay(200);
  lcd.print(" ");delay(200); lcd.print("U");delay(200);
  lcd.print("N");delay(200); lcd.print("I");delay(200);
  lcd.print("V");delay(200); lcd.print("E");delay(200);
  lcd.print("R");delay(200); lcd.print("S");delay(200);
  lcd.print("I");delay(200); lcd.print("T");delay(200);
  lcd.print("Y");delay(3000);
  lcd.clear();
}

void loop() {
  int u;
  lcd.setCursor(1, 0);
  lcd.print("UNIVERSITAS BINA INSANI");
  lcd.setCursor(3, 1);
  lcd.print("Terbaik & Terpercaya");
  for (u = 0 ; u < 16; u++) {
    lcd.scrollDisplayLeft();
    //lcd.scrollDisplayRight();
    delay(500);
  }
  }



0 Response to "teks berjalan lcd i2c arduino"

Posting Komentar