jin young sung / Mbed 2 deprecated Led Clock Download Featured

Dependencies:   mbed

Revision:
8:b162bf17271f
Parent:
7:11a20cba4eae
Child:
9:724d3e39ded8
--- a/main.cpp	Mon May 18 15:27:16 2015 +0000
+++ b/main.cpp	Mon Jun 01 10:19:42 2015 +0000
@@ -11,7 +11,6 @@
 DigitalOut dot_Point();      //Time point
 BusOut hour();               //Hour hand
 BusOut minute();             //Minute hand
-BusOut 
 InterruptIn hall();          //Hall sensor sensing interrupt
 Timer timer;
 
@@ -24,7 +23,7 @@
 int main() 
 {
     hall.rise(&sensor);      //rising edge operating
-    int a = 0;
+    int T = 0,t = 0
     
     while(1)
     {    
@@ -39,8 +38,10 @@
         {
             timer.stop();
             
-            a = timer.read();
+            T = timer.read();
+            t = T/360;
         }
+        t1 = timer1.read();
     }
 }
 void sensor()