#include<LiquidCrystal_I2C.h>
//definr the led address and colum/row number
// make object
LiquidCrystal_I2C lcd(0x27,16,2);
//contect button digital pin 5
int bu=5;
int count=0;
void setup() {
// put your setup code here, to run once:
//lcd start
lcd.begin(16,2);
//on lcd backlight
lcd.backlight();
}
void loop() {
//if click the button count increse
if(digitalRead(bu)==HIGH)
{
count++;
}
//then not click tha button count not incese
//define tha position
lcd.setCursor(0,0);
lcd.print(count);
delay(300);
}