Final

Dependencies:   mbed

Fork of MiniProject5_LightTracker by Austin Sloop

Revision:
3:4a3e2dbc111e
Parent:
2:d50d55831d50
Child:
4:87d0b3943dfb
Child:
11:7b3d64a66efd
--- a/SegDisplay.cpp	Mon Jan 11 21:44:09 2016 +0000
+++ b/SegDisplay.cpp	Mon Jan 11 21:56:22 2016 +0000
@@ -1,10 +1,12 @@
 #include "SegDisplay.h"
 BusOut Display(p5,p6,p7,p8,p9,p10,p11,p12);
+DigitalOut Display1(p16);
+DigitalOut Display10(p17);
 
 
 void SegInit(void)
 {
-    Seg1 = SegConvert(0);
+    Display = SegConvert(0);
    
 }
 
@@ -24,4 +26,17 @@
         case 9: SegByte = 0x6F; break;
     }    
     return SegByte;
-}
\ No newline at end of file
+}
+
+void SegDisplay(char x, char y)
+{
+    while(1)
+    {
+        Display1 =1;
+        Display = SegConvert(x);
+        Display1=0;
+        Display10 = 1;
+        Display = SegConvert(y);
+        Display10=0;    
+    }    
+}