Rabu, 04 Juli 2018

Cetak Kalimat Di LCD ukuran 2x16

Percobaan 20 Cetak kalimat di LCD
Menampilkan teks di LCD Dan Running Teks bergerak dari kiri ke kanan

Anggota kelompok:
Nama: Bagus Ilham Yunianto NIM:15-360-0051
Nama: Mohammad Bagus Rahman NIM:15-360-0044


Tujuan: Menampilkan teks di LCD ukuran 2x16

Program menampilkan teks:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,6,7);
void setup() {
  lcd.begin(16,2);
  lcd.setCursor(0,0);
  lcd.print("HALLO APA KABAR");
  lcd.setCursor(0,1);
  lcd.print("TEKNIK ELEKTRO");
}
void loop() {}

Proyek:






Program Running teks dari kiri ke kanan:
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);

void setup() {
lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print("WE ARE LOVE");
lcd.setCursor(1,1);
lcd.print("TEKNIK ELEKTRO");
delay(1000);
}
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.scrollDisplayLeft();
  delay(500);
}
delay(1000);
}
Proyek:


Tidak ada komentar:

Posting Komentar

Cetak Kalimat Di LCD ukuran 2x16

Percobaan 20 Cetak kalimat di LCD Menampilkan teks di LCD Dan Running Teks bergerak dari kiri ke kanan Anggota kelompok: Nama: Bagus Ilh...