//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0, 0); //row0
lcd.print("MANOCH SANGSIRI!");
lcd.setCursor(0, 1); //row1
lcd.print("I MISS YOU!");
delay(1000); // หน่วงเวลา 1 วินาที
}
void loop()
{
//row0 = 0000000000000000
for (int i = 0; i <= 16; i++)
{
lcd.setCursor(i, 0);
lcd.print(0);
}
//row1 9999999999999999
for (int i = 16; i >= 0; i--)
{
lcd.setCursor(i, 1);
lcd.print(9);
}
}