Alarm Clock

Dependencies:   TextLCD mbed

Fork of SmartRise_MBED by Austin Sloop

Revision:
12:f42b74f76630
Parent:
11:be164273b969
Child:
13:2ba69c3dc08a
--- a/main.cpp	Wed Jan 27 02:03:43 2016 +0000
+++ b/main.cpp	Wed Jan 27 04:46:00 2016 +0000
@@ -8,10 +8,10 @@
 
 Serial pc(USBTX,USBRX);
 
-DigitalIn AlarmAdjust(p9);
-InterruptIn off(p15);
+DigitalIn AlarmAdjust(p9);   // Used to Adjust the Alarm
+InterruptIn off(p15);       // Used to turn off the Alarm
 
-DigitalIn timeSW(p10);
+DigitalIn timeSW(p10);    // Used to adjust the time
 DigitalOut led2(LED2);
 
 int main() 
@@ -27,8 +27,8 @@
             Sound_Alarm();
         }
         
-        if(timeSW==1)timeProg();
-        if(AlarmAdjust==1) alarmProg();
+        if(timeSW==1)timeProg();           // Activate using black switch
+        if(AlarmAdjust==1) alarmProg();    // Activate using Blue button with switch closed
         led2 = 1; 
     }
 }
@@ -36,4 +36,4 @@
 
    
    
-   
\ No newline at end of file
+