#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
byte heart[8] = {
B00000,
B01010,
B11111,
B11111,
B11111,
B01110,
B00100,
B00000
};
void setup() {
// Create custom character
lcd.createChar(0, heart);
// Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print the first message
lcd.setCursor(0, 0);
lcd.print("Hello MSc AI and ML");
// Print three hearts on the second row
lcd.setCursor(6, 1);
lcd.write(byte(0));
lcd.setCursor(7, 1);
lcd.write(byte(0));
lcd.setCursor(8, 1);
lcd.write(byte(0));
}
void loop() {
lcd.scrollDisplayLeft();
delay(500);
}