TUGAS PRAKTIKUM PERCOBAAN - 20 " Cetak kalimat di LCD"


Nama Kelompok :
1. Riski Ariyanto  / 163600047
2. Mufti Maulana Rahman  / 163600059

Tujuan : Menampilkan text di LCD ukuran 2x16

Hasil gambar untuk skema lcd dengan arduino

Program :

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int x,y,z,k;

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

}

void loop() {}


Program untuk tulisan bergeser ke kiri :

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int x,y,z,k;

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

}

void loop() {
 for(int x=0;x<29;x++){
    lcd.scrollDisplayLeft();
    delay(250);
  }
}






Komentar

Postingan populer dari blog ini

TUGAS MEMBUAT GERBANG NAND MENJADI GERBANG NOR , EX-OR , EX-NOR

TUGAS PRAKTIKUM PERCOBAAN-19 "Motor Servo"

TUGAS PRAKTIKUM 1-3 "Mencetak Kalimat di Monitor"