prima versione
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG TS_DISCO_F746NG mbed
geco/numeri.cpp@0:6ed610929e7f, 2016-06-29 (annotated)
- Committer:
- geco300
- Date:
- Wed Jun 29 13:38:35 2016 +0000
- Revision:
- 0:6ed610929e7f
prima versione
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
geco300 | 0:6ed610929e7f | 1 | char* convert(int number){ |
geco300 | 0:6ed610929e7f | 2 | |
geco300 | 0:6ed610929e7f | 3 | switch (number){ |
geco300 | 0:6ed610929e7f | 4 | |
geco300 | 0:6ed610929e7f | 5 | case 0 : |
geco300 | 0:6ed610929e7f | 6 | return "0"; |
geco300 | 0:6ed610929e7f | 7 | |
geco300 | 0:6ed610929e7f | 8 | case 1 : |
geco300 | 0:6ed610929e7f | 9 | return "1"; |
geco300 | 0:6ed610929e7f | 10 | |
geco300 | 0:6ed610929e7f | 11 | case 2 : |
geco300 | 0:6ed610929e7f | 12 | return "2"; |
geco300 | 0:6ed610929e7f | 13 | |
geco300 | 0:6ed610929e7f | 14 | case 3 : |
geco300 | 0:6ed610929e7f | 15 | return "3"; |
geco300 | 0:6ed610929e7f | 16 | |
geco300 | 0:6ed610929e7f | 17 | case 4 : |
geco300 | 0:6ed610929e7f | 18 | return "4"; |
geco300 | 0:6ed610929e7f | 19 | |
geco300 | 0:6ed610929e7f | 20 | case 5 : |
geco300 | 0:6ed610929e7f | 21 | return "5"; |
geco300 | 0:6ed610929e7f | 22 | |
geco300 | 0:6ed610929e7f | 23 | case 6 : |
geco300 | 0:6ed610929e7f | 24 | return "6"; |
geco300 | 0:6ed610929e7f | 25 | |
geco300 | 0:6ed610929e7f | 26 | case 7 : |
geco300 | 0:6ed610929e7f | 27 | return "7"; |
geco300 | 0:6ed610929e7f | 28 | |
geco300 | 0:6ed610929e7f | 29 | case 8 : |
geco300 | 0:6ed610929e7f | 30 | return "8"; |
geco300 | 0:6ed610929e7f | 31 | |
geco300 | 0:6ed610929e7f | 32 | |
geco300 | 0:6ed610929e7f | 33 | |
geco300 | 0:6ed610929e7f | 34 | |
geco300 | 0:6ed610929e7f | 35 | } |
geco300 | 0:6ed610929e7f | 36 | |
geco300 | 0:6ed610929e7f | 37 | return "NaN"; |
geco300 | 0:6ed610929e7f | 38 | } |