#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 20
#define LCD_LINES 4
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
uint8_t pacman[] = {
0b00000,
0b00000,
0b01110,
0b11011,
0b11111,
0b01110,
0b00000,
0b00000
};
uint8_t pacmanOpen[] = {
0b00000,
0b00000,
0b01110,
0b11011,
0b11100,
0b01110,
0b00000,
0b00000
};
uint8_t dot[] = {
0b00000,
0b00000,
0b00000,
0b00110,
0b00110,
0b00000,
0b00000,
0b00000
};
void setup() {
lcd.init();
lcd.backlight();
lcd.createChar(1, pacman);
lcd.createChar(2, dot);
lcd.createChar(3, pacmanOpen);
lcd.setCursor(2, 0);
lcd.print("Karakter Kustom");
lcd.setCursor(7,2);
lcd.print("\1");
lcd.setCursor(9,2);
lcd.print("\2");
lcd.setCursor(11,2);
lcd.print("\3");
}
void loop() {
}