Lab1 Part2

Dependencies:   mbed

Revision:
1:6f2984a38b99
Parent:
0:272af4948198
--- a/main.cpp	Thu Jan 29 20:51:17 2015 +0000
+++ b/main.cpp	Sun Feb 08 15:35:34 2015 +0000
@@ -1,16 +1,20 @@
 #include "mbed.h"
 
+//Initialize Digital Out and Interrupt
 InterruptIn pound(p25);
 DigitalOut myled(LED1);
 
+//Define Interrupt Functions
 void pON () {
         myled = 1;
     }
 void pOFF() {
         myled = 0;
-    }
+    {
+        
 int main() {
     myled = 0;
+    //Initialize Interrupt for rising and falling edge
     pound.rise(&pON);
     pound.fall(&pOFF);
     while(1) {