#include <LiquidCrystal.h> //เรียกใช้ไลบรารี่จอ LCD
LiquidCrystal lcd(2,3,4,5,6,8); //เซตพอร์ตที่ต่อ LCD
#include "RTClib.h"
RTC_DS1307 rtc;
uint8_t A[8] = {
0b00011,
0b00011,
0b00001,
0b00001,
0b01001,
0b00101,
0b00011,
0b00001,
};
uint8_t B[8] = {
0b11111,
0b10001,
0b00001,
0b00101,
0b01011,
0b10001,
0b11001,
0b11001,
};
uint8_t C[8] = {
0b11111,
0b01001,
0b10001,
0b10001,
0b10001,
0b10001,
0b10001,
0b10001,
};
void setup()
{ lcd.begin(20,4);
lcd.setCursor(2,0);
lcd.print("NURHAYATEE 632021125");
lcd.createChar(1, A);
lcd.createChar(2, B);
lcd.createChar(3, C);
lcd.setCursor(7,1);
lcd.print(" \x01 \x02 \x03 ");
}
void loop()
{
}