#include <LiquidCrystal.h>
LiquidCrystal lcd = LiquidCrystal(13,12,7,6,5,4);
int cislo = 0;
bool test = true;
void setup()
{
lcd.begin(16,2);
pinMode(2, INPUT_PULLUP);
}
void loop()
{
if(digitalRead(2) == LOW && test == true)
{
test = false;
cislo++;
lcd.setCursor(0,0);
lcd.print(cislo);
}
else if (digitalRead(2) == HIGH && test == false)
{
test = true;
}
}