#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 4, d5 = 3, d6 = 2, d7 = 1;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
const int buttonPin = 0;
unsigned long lastPressTime = 0; 
void setup() {
  lcd.begin(16, 2); 
  lcd.clear(); 
  pinMode(buttonPin, INPUT_PULLUP); 
  lastPressTime = 0; 
}
void loop() {
  if (digitalRead(buttonPin) == LOW) {
    // Кнопка нажата
    unsigned long currentTime = millis();
    unsigned long elapsedTime = currentTime - lastPressTime;
    lcd.setCursor(0, 0); 
    lcd.print("Time: ");
    lcd.print(elapsedTime);
    lastPressTime = currentTime;
  }
  delay(100); 
}
$abcdeabcde151015202530fghijfghij