jin young sung / Mbed 2 deprecated Led Clock Download Featured

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
darzento
Date:
Mon Jun 01 10:21:18 2015 +0000
Parent:
8:b162bf17271f
Commit message:
dd

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jun 01 10:19:42 2015 +0000
+++ b/main.cpp	Mon Jun 01 10:21:18 2015 +0000
@@ -11,6 +11,7 @@
 DigitalOut dot_Point();      //Time point
 BusOut hour();               //Hour hand
 BusOut minute();             //Minute hand
+BusOut 
 InterruptIn hall();          //Hall sensor sensing interrupt
 Timer timer;
 
@@ -23,7 +24,7 @@
 int main() 
 {
     hall.rise(&sensor);      //rising edge operating
-    int T = 0,t = 0
+    int a = 0;
     
     while(1)
     {    
@@ -38,10 +39,8 @@
         {
             timer.stop();
             
-            T = timer.read();
-            t = T/360;
+            a = timer.read();
         }
-        t1 = timer1.read();
     }
 }
 void sensor()