Our Story.
Share anything about our laboratorium

Mikro 2020 Percobaan 4 Modul I LCD



LCD

1.  Hardware [Kembali]



2.      Rangkaian Simulasi [Kembali]



3.      Flowchart[Kembali]


4.      Listing Program[Kembali]


/*
   Code Writer : Ahmad Fathan
   Description :
   The code is used to display a "Hello World" message to LCD.
*/
#include <LiquidCrystal.h>

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; // mendeklarasikan pin yang akan dipakai untuk LCD
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); // membuat objek LCD
void setup() {
  lcd.begin(16, 2); // mengatur konfigurasi LCD (16x2)
  lcd.print("hello, world!"); // menampilkan pesan "hello, world!" ke LCD
}

void loop() {
  lcd.setCursor(0, 1); // mengatur kursor ke kolom 0 baris 1
  lcd.print(millis() / 1000); // menampilkan jumlah detik sejak awal setup
}

5. Video Simulasi [Kembali]


6. Link Download [Kembali]



labor eldi labor eldi Author

About



Welcome to the website of Industrial Electronics Laboratory. The Laboratory is located in the Department of Electrical Engineering, Faculty of Engineering, Andalas University

Find Us

Pageview

Followers