//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
byte kiriatas[] = {
B00000,
B00111,
B01111,
B11011,
B10001,
B11011,
B01111,
B00110
};
byte kananatas[] = {
B00000,
B11100,
B11110,
B11011,
B10001,
B11011,
B11110,
B01100
};
byte kiribawah[] = {
B00111,
B00111,
B00101,
B00000,
B00000,
B00000,
B00000,
B00000,
};
byte kananbawah[] = {
B11100,
B11100,
B10100,
B00000,
B00000,
B00000,
B00000,
B00000
};
void setup()
{
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.createChar(0,kiriatas);
lcd.createChar(1,kananatas);
lcd.createChar(2,kiribawah);
lcd.createChar(3,kananbawah);
}
void loop()
{
lcd.setCursor(3,0);
lcd.print("Ferdi");
lcd.setCursor(3,1);
lcd.print("22.11.5018");
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));
}