#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
byte customPersonWalk0[8] = {
0b01110,
0b01110,
0b00100,
0b00111,
0b01100,
0b10110,
0b00101,
0b11001};
byte customPersonWalk1[8] = {
0b01110,
0b01110,
0b00100,
0b10100,
0b01110,
0b00101,
0b01010,
0b10001};
void setup() {
// put your setup code here, to run once:
lcd.init(); // Inisiasi LCD I2C
lcd.backlight(); // Menyalakan backlight LCD
lcd.createChar(0, customPersonWalk0); // Membuat karakter baru orang berlari
lcd.createChar(1, customPersonWalk1); // Membuat karakter baru orang berlari
// Program komunikasi atau setup untuk serial monitor dan kecepatan komunikasi
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
lcd.write(customPersonWalk0);
lcd.setCursor(3, 0);
lcd.write(customPersonWalk1);
lcd.setCursor(1, 2);
lcd.write(customPersonWalk0);
lcd.setCursor(3, 2);
lcd.write(customPersonWalk1);
}