 		Serial.println("Unable to sync with the RTC");
 	else
 		Serial.println("RTC has set the system time"); 
+	
+	pinMode(ALARM_PIN, INPUT_PULLUP);
+	RTC.sramWrite(ALARM_H_ADDR,  8);
+	RTC.sramWrite(ALARM_M_ADDR, 30);
 }
 
 void loop()

			int m;
			h = digitValues[0]*10 + digitValues[1];
			m = digitValues[2]*10 + digitValues[3];
			//setTime(h, m, 0, 1, 1, 2015);
  			//RTC.set(now());

			Serial.print("New alarm time: ");
			Serial.print(h);
			Serial.print(":");
			Serial.println(m);

  			fsmState = SHOW_TIME_MODE;

// ---------------------- //
#define BUTTON_A_PIN A0
#define BUTTON_B_PIN A1

// ---------------------- //
//  alarm pins / addr
// ---------------------- //
#define ALARM_PIN A3
#define ALARM_H_ADDR 0x20
#define ALARM_M_ADDR 0x21

// ---------------------- //
//  FSM definitions
