Jumat, 22 Juni 2018

TUGAS MIKROKONTROLLER  
PERCOBAAN MENAMPILKAN TEXT BERJALAN PADA LCD 2X16


  NAMA KELOMPOK :
1. LUKY ARDIANSYAH (163600034)
2. ROIB MUKHODAH     (163600017)

PROGRAM :

#include <LiquidCrystal.h>


LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  
  lcd.begin(16, 2);
 lcd.setCursor(0, 0);
  lcd.print(" Hallo , Apa Kabar ? ");
  lcd.setCursor(0, 1);
   lcd.print(" I LOVE YOU ");
  delay (500);
}

void loop() {
 for (int x = 0;x<13;x++){
  lcd.scrollDisplayLeft();
  delay(500); 
 }
 for (int x = 0;x <29;x++){
  lcd.scrollDisplayRight();
  delay(500); 
}
for (int x = 0;x <16;x++){
  lcd.scrollDisplayRight();
  delay(500); 

  delay (400);

}

HASIL RUNNING PROGRAM :


Tidak ada komentar:

Posting Komentar