#include <LiquidCrystal.h>

//untuk urutannya RS, E, 4, 5, 6, 7
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //pin yang disambungkan

void setup()
{
//prosedur pemanggil fungsi LCD
lcd.begin(16, 2); 
}

void loop() {
lcd.setCursor(0,0); //set pada baris 1 dan kolom 1
lcd.print("Daniel Kantohe"); 
lcd.setCursor(0,1);
lcd.print("Percobaan LCD");
delay(3000);
lcd.clear();

//Tampilan kedua
lcd.setCursor(0,0);
lcd.print("Hello World");
lcd.setCursor(0,1);
lcd.print("Nelson Hamise");
delay(3000);
lcd.clear();
}