ddad

Dependencies:   mbed

Fork of class_7segment_serial by tatiuc embedded

Revision:
1:65d57cc8cb22
Parent:
0:8cf7ed60c892
Child:
2:120a14d6f055
diff -r 8cf7ed60c892 -r 65d57cc8cb22 main.cpp
--- a/main.cpp	Tue Jun 06 08:49:30 2017 +0000
+++ b/main.cpp	Tue Jun 06 09:26:52 2017 +0000
@@ -16,9 +16,9 @@
         while (1) 
         { // infinite loop
             data2 = GetKeyInput(); // call function to get 1st key press
-            Seg2=SegConvert(data2); // call function to convert and output
+            Seg1=SegConvert(data2); // call function to convert and output
             data1 = GetKeyInput(); // call function to get 2nd key press
-            Seg1=SegConvert(data1); // call function to convert and output
+            Seg2=SegConvert(data1); // call function to convert and output
             pc.printf(" "); // display spaces between 2 digit numbers
         }
 }