// Add the Liquid Crystal I2C library
#include <LiquidCrystal_I2C.h>
// Add the lcd
LiquidCrystal_I2C lcd(0x27, 16, 2);
int ticket=0;
int k=2;
void setup() {
// Initalise the LCD
lcd.init();
// Turn on the LCD backlight
lcd.backlight();
// Put text on the LCD
//lcd.print("Hello World!");
pinMode(k,INPUT_PULLUP);
attachInterrupt(1,incrementer,FALLING);
}
void loop() {
// No code needed for this part, you can put your code here if you want.
lcd.setCursor(3,0);
lcd.print("client");
lcd.setCursor(5,1);
lcd.print(ticket);
}
void incrementer()
{
ticket++;
}