#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_LINES 2
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
/*lcd.setCursor(0,1);
lcd.print("SONG MINGI <3");
//print something
lcd.setCursor(3,0);*/
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 1; i <= 200; i++)
{
int j = i;
int wieoftdurch10 = 0;
while (j>0)
{
j /= 10;
wieoftdurch10++;
}
lcd.setCursor(5-wieoftdurch10,0);
lcd.print(i);
delay(50);
lcd.clear();
}
}