   while(prevtime == RTC.get()){
     char keypressed = myKeypad.getKey();
     if (keypressed != NO_KEY){
-      if (keypressed != 'A') {
-        hello(tm.Hour);
-        break;
+      digitalWrite(pin, HIGH);
+      switch (keypressed) {
+        case 'A':
+          hello(tm.Hour);
+          break;
+        default:
+          delay(200);
       }
+      digitalWrite(pin, LOW);
     }
   }
 }

void hello(uint8_t hour){
  lcd->clear();
  lcd->init(F("Доброї ночі!\rДоброго ранку!\rДоброго дня!\rДоброго вечора!\rЯ годинник :)"));  
  lcd->printn((hour - 1) / 6, 0, 0);
  lcd->printn(4, 3, 1);  
  delay(3000);
  lcd->clear();
}


#include <Time.h>
#include <DS1302RTC.h>
// Set pins:  CE, IO,CLK
DS1302RTC RTC(12, 11, 10);

const uint8_t pin = 13;

void setup() {
  pinMode(pin, OUTPUT);

  lcd = new CyrI2c(0x27, 16, 2);
  lcd->backlight();

