#include <LiquidCrystal.h>
#define RS 12
#define EN 11
#define D4 10
#define D5 9
#define D6 8
#define D7 7
LiquidCrystal lcd(RS,EN,D4,D5,D6,D7);
byte heart[] = { // ♥
B00000,
B00000,
B01010,
B11111,
B11111,
B11111,
B01110,
B00100
};
void setup() {
lcd.begin(16,2); //เปิดใช้งานจอ LCD ให้ใส่ตัวเลขตามขนาดของจอ
lcd.setCursor(3,0);
lcd.print("PHAKWALAN");
lcd.createChar(7, heart);
lcd.setCursor(1,1);
lcd.print("KERIKCHAIPHONG");
}
void loop() {
lcd.setCursor(1,0);
lcd.write((byte)7);
}