Schematic Sketch
#include <LiquidCrystal.h>
void setup()
{
lcd.begin(numCols, numRows);
lcd.print("Hello, World!"); // Tampilkan string
}
void loop()
{
lcd.setCursor(0, 1); // set kursor LCD ke kolom 0 baris 1
Schematic Sketch
#include <LiquidCrystal.h>
// rs, E,d4,d5,d6,d7
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(numCols, numRows);
lcd.print("Starting in "); // panjang string 12 karakter
for(int i=9; i > 0; i--) // count down dari 9
void loop()
{
int columnWidth = 4; //jarak kolom
int displayColumns = 3; //berapa banyak kolom angka
lcd.clear();
for( int col=0; col < displayColumns; col++)
{
lcd.setCursor(col * columnWidth, 0);
count = count+ 1;
lcd.print(count);
}
delay(1000);
}
Schematic Sketch
#include <LiquidCrystal.h>
// rs, E,d4,d5,d6,d7
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
lcd.print("Blinking Text");
}
void loop()
{
lcd.setCursor(0, 1);
lcd.print("cursor blink");
lcd.blink();
delay(2000);
lcd.noBlink();
lcd.print(" noBlink");
delay(2000);
Schematic Sketch
#include <LiquidCrystal.h>
void setup()
{
lcd.begin(16, 2);
lcd.print("Scrolling Text");
delay(1000);
}
void loop()
{
// scroll panjang string 13 posisi ke kiri
for (int positionCounter = 0; positionCounter < 13;
positionCounter++)
{