Implement a SD card into HW6

Dependencies:   SDFileSystem mbed

Fork of shomberg_hw_6 by Russell Shomberg

Revision:
12:ea407dcaff78
Parent:
11:42914083ac70
Child:
18:699b41309be7
diff -r 42914083ac70 -r ea407dcaff78 main.cpp
--- a/main.cpp	Thu Oct 25 18:58:41 2018 +0000
+++ b/main.cpp	Thu Oct 25 22:43:36 2018 +0000
@@ -30,8 +30,6 @@
 float v0;
 float deltav;
 float val;
-int ones;
-int tens;
 
 
 int main() {
@@ -55,15 +53,8 @@
             //printf("Voltage Difference = %1.2f mV\n\r", val);
         }
         
-        // Convert val to ones and tens char
-        ones = fmod(rint(val),10);
-        tens = fmod(rint(val) / 10, 10);
-        
-
-        Seg1 = SegConvert(ones);
-        Seg2 = SegConvert(tens);
-        
-        
+        SegWrite(val);
+                
         wait(1);
         
     }