serial with 7 segment
Dependencies: mbed
Revision 1:65d57cc8cb22, committed 2017-06-06
- Comitter:
- mijimy
- Date:
- Tue Jun 06 09:26:52 2017 +0000
- Parent:
- 0:8cf7ed60c892
- Commit message:
- rwer
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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 } }