Final

Dependencies:   mbed

Fork of MiniProject5_LightTracker by Austin Sloop

Revision:
2:d50d55831d50
Parent:
1:8e14c2404f45
Child:
3:4a3e2dbc111e
diff -r 8e14c2404f45 -r d50d55831d50 SegDisplay.cpp
--- a/SegDisplay.cpp	Mon Jan 11 21:29:51 2016 +0000
+++ b/SegDisplay.cpp	Mon Jan 11 21:44:09 2016 +0000
@@ -1,18 +1,17 @@
 #include "SegDisplay.h"
-BusOut Seg1(p5,p6,p7,p8,p9,p10,p11,p12);
-BusOut Seg2(p13,p14,p15,p16,p17,p18,p19,p20);
+BusOut Display(p5,p6,p7,p8,p9,p10,p11,p12);
+
 
 void SegInit(void)
 {
     Seg1 = SegConvert(0);
-    Seg2 = SegConvert(0);    
+   
 }
 
 char SegConvert(char SegValue)
 {
     char SegByte = 0x00;
-    switch(SegValue)
-    {
+    switch(SegValue){
         case 0: SegByte = 0x3F; break;
         case 1: SegByte = 0x06; break;
         case 2: SegByte = 0x5B; break;