#include<LiquidCrystal.h>
const int pin_rs = 12;
const int pin_e = 11;
const int pin_d4 = 7;
const int pin_d5 = 6;
const int pin_d6 = 5;
const int pin_d7 = 4;
const int pin_a0 = A0;
byte huruf_a[] =
{
B01110, B01010, B01010, B01010, B11111, B11001, B11001, B11001
};
byte huruf_b[] =
{
B01110, B01010, B01010, B01010, B11111, B11001, B11001, B11111
};
byte huruf_d[] =
{
B01110, B01011, B01001, B01001, B11001, B11001, B11001, B11111
};
byte huruf_u[] =
{
B10001, B10001, B10001, B10001, B11001, B11001, B11001, B11110
};
byte huruf_l[] =
{
B01000, B01000, B01000, B01000, B11000, B11000, B11000, B11111
};
LiquidCrystal lcd(pin_rs, pin_e, pin_d4, pin_d5, pin_d6, pin_d7);
void setup() {
lcd.begin(16, 2);
lcd.createChar(0, huruf_a);
lcd.createChar(2, huruf_b);
lcd.createChar(3, huruf_d);
lcd.createChar(4, huruf_u);
lcd.createChar(5, huruf_l);
lcd.clear();
lcd_write(byte(0));
lcd_write(byte(1));
lcd_write(byte(2));
lcd_write(byte(3));
lcd_write(byte(4));
}
void loop() {
}