

#include <hd44780.h> // 라이브러리 추가 (hd44780.h 라이브러리)
#include <Wire.h> // 라이브러리 추가 (Wire.h 라이브러리)
#include <hd44780ioClass/hd44780_I2Cexp.h>
hd44780_I2Cexp lcd;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
for (int i = 0; i < 6;i++ ) {
lcd.print(i); // 윗줄 출력문
}
lcd.setCursor(1, 1);
lcd.print("DONE!"); // 윗줄 출력문
/*
lcd.setCursor(0, 0);
lcd.print("Hello World!"); // 윗줄 출력문
lcd.setCursor(1, 1);
lcd.print("by INSEONG"); // 아랫줄 출력문
*/
}