Alarm Clock

Dependencies:   TextLCD mbed

Fork of SmartRise_MBED by Austin Sloop

Revision:
8:edf5f23cb393
Parent:
7:5412a6d7ef6d
Child:
11:be164273b969
diff -r 5412a6d7ef6d -r edf5f23cb393 main.cpp
--- a/main.cpp	Tue Jan 26 01:22:36 2016 +0000
+++ b/main.cpp	Tue Jan 26 01:49:16 2016 +0000
@@ -12,18 +12,23 @@
 InterruptIn off(p15);
 
 DigitalIn timeSW(p10);
+DigitalOut led2(LED2);
 
 
 int main() 
 {
     time_init();
     off.rise(&turn_off);
-    while(1){
+    while(1)
+    {
         timeDisplay();
         if(checkAlarm())Sound_Alarm();
+        
+        // Sound_Alarm();
+        
         if(timeSW==1)timeProg();
         if(AlarmAdjust==1) alarmProg();
-        
+        led2 = 1; 
     }
 }