Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of WaG by
Diff: display.cpp
- Revision:
- 12:a947a6609a23
- Parent:
- 11:6751b9406142
- Child:
- 13:8936b2f64aa2
diff -r 6751b9406142 -r a947a6609a23 display.cpp --- a/display.cpp Fri Feb 23 23:05:58 2018 +0000 +++ b/display.cpp Tue Feb 27 14:22:49 2018 +0000 @@ -106,13 +106,16 @@ int place = 3; while (num != 0) { //converts decimal input to decimal array using %mod int val = num % 10; - dec_arr[place] = val; + //dec_arr[place] = val; + bcd[place] = val; num = num/10; place--; } + /* for (int i = size - 1; i >= 0; i--) { //converts decimal array to binary array bcd[i] = convert(dec_arr[i]); } + */ } #endif