#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 4);
void spinner() {
static int8_t counter = 0;
const char* glyphs = "\xa1\xa5\xdb";
lcd.setCursor(0, 0);
lcd.print(glyphs[counter++]);
if (counter == strlen(glyphs)) {
counter = 0;
}
}
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
int i = 0;
while (i < 5) {
delay(250);
spinner();
i++;
}
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Nama :");
lcd.setCursor(0,1);
lcd.print("Asal :");
lcd.setCursor(6,0);
lcd.print("Dendi Ferdinal");
lcd.setCursor(6,1);
lcd.print("Bukittinggi");
}
void loop() {
}