Tutorial Menampilkan Pesan di LCD I2C berbasis Arduino Nano R3

Berikut adalah Tutorial Menampilkan Pesan di LCD I2C berbasis Arduino Nano R3

Ini adalah sketch program arduino

/*
* 9_Menampilkan Pesan di LCD
*/

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()
{
lcd.begin();
lcd.backlight();
}

void loop()
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Halo");
delay(5000);
lcd.setCursor(0,0);
lcd.print("Selamat Belajar");
lcd.setCursor(0,1);
lcd.print("Arduino");
delay(5000);
}

Leave a Reply

Your email address will not be published. Required fields are marked *