HW6 for OCE560

Dependencies:   mbed

Fork of shomberg_hw_5 by Russell Shomberg

Revision:
12:ea407dcaff78
Parent:
11:42914083ac70
--- 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);
         
     }