 
 
 void stopAlarm(){
+  currentState = NORMAL;
+  motorDriverState(false); 
+  turnOffLCDIfCommandIsOff();
+}
+
+void motorDriverState(boolean state){
+  if(state){
+    digitalWrite(MOTOR_SLEEP_PIN, HIGH);
+  } else {
+    digitalWrite(MOTOR_SLEEP_PIN, LOW);
+  }
+}
+
+void changeMotorState(boolean active, bool direction){
+
+  if(!active){
+     digitalWrite(MOTOR_PIN1, LOW);
+     digitalWrite(MOTOR_PIN2, LOW);
+     return; 
+  }
+  
+   if(direction){
+     digitalWrite(MOTOR_PIN1, HIGH);
+     digitalWrite(MOTOR_PIN2, LOW);     
+   } else {
+     digitalWrite(MOTOR_PIN1, LOW);
+     digitalWrite(MOTOR_PIN2, HIGH); 
+   }
+    
+
+
 }
 
 void writeTimeToDisplayBuffer(DateTime now, boolean blinkOn, boolean secondsBlinkOn){


#define BLINK_INTERVAL_SETTINGS 100
#define BLINK_INTERVAL_SECONDS 500

typedef enum {
  NORMAL, ALARM, SETTING_TIME, SETTING_ALARM} 

  case NORMAL :
    {
      showLCD = !showLCD;
      turnOffLCDIfCommandIsOff();

    }
    break;
