#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
byte customChar[8] = {
0b00000,
0b00001,
0b00011,
0b00011,
0b00111,
0b01111,
0b01111,
0b11111
};
byte customChar2[8] = {
0b00010,
0b10010,
0b11010,
0b11010,
0b11110,
0b11110,
0b11110,
0b11111
};
byte customChar3[8] = {
0b11111,
0b11111,
0b11100,
0b11100,
0b11100,
0b11100,
0b11100,
0b11100,
};
byte customChar4[8] = {
0b11111,
0b11111,
0b11111,
0b10001,
0b10001,
0b10001,
0b11111,
0b11111,
};
void setup() {
Wire.begin();
lcd.init();
lcd.backlight();
lcd.createChar(0, customChar);
lcd.createChar(2, customChar2);
lcd.createChar(3, customChar3);
lcd.createChar(4, customChar4);
lcd.setCursor(0, 0);
lcd.write(0);
lcd.setCursor(1, 0);
lcd.write(2);
lcd.setCursor(0, 1);
lcd.write(3);
lcd.setCursor(1,1);
lcd.write(4);
lcd.setCursor(3, 0);
lcd.print("Rumahku");
lcd.setCursor(3, 1);
lcd.print("Istanaku");
}
void loop() {
}