#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte atapKiri[8] = {
B00000,
B00001,
B00011,
B00011,
B00111,
B01111,
B01111,
B11111,
};
byte atapKanan[8] = {
B00010,
B10010,
B11010,
B11010,
B11110,
B11110,
B11110,
B11111,
};
byte dindingKiri[8] = {
B11111,
B11111,
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
};
byte dindingKanan[8] = {
B11111,
B11111,
B11111,
B10001,
B10001,
B10001,
B11111,
B11111,
};
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.createChar(0, atapKiri);
lcd.begin(16, 2);
lcd.createChar(1, atapKanan);
lcd.begin(16, 2);
lcd.createChar(2, dindingKiri);
lcd.begin(16, 2);
lcd.createChar(3, dindingKanan);
lcd.setCursor(0, 0);
lcd.write(byte(0));
lcd.setCursor(1, 0);
lcd.write(byte(1));
lcd.setCursor(0, 1);
lcd.write(byte(2));
lcd.setCursor(1, 1);
lcd.write(byte(3));
lcd.setCursor(3, 0);
lcd.print("Rumahku");
lcd.setCursor(3, 1);
lcd.print("Istanaku");
}
void loop() {
// put your main code here, to run repeatedly:
}