natsu tsumagari
/
test_cadenceClass
回転数計のクラスです。
Diff: main.cpp
- Revision:
- 5:871c2d6c1129
- Parent:
- 4:2def7f5f7fed
- Child:
- 6:93f90c5d0e5b
--- a/main.cpp Fri Jan 27 14:10:44 2017 +0000 +++ b/main.cpp Sat Jan 28 01:07:59 2017 +0000 @@ -25,8 +25,8 @@ pc.printf("%c",ar.data[i]); } pc.printf("test\n\r"); - pc.printf("cadence: %d\n\r",ar.cadence); - pc.printf("voltage: %d\n\r",ar.voltage); + pc.printf("cadence:%4.2f\n\r",ar.cadence); + pc.printf("voltage:%4.2f\n\r",ar.voltage); pc.printf("strC:"); for(int i=0; i<4; i++) pc.printf("%c",ar.strC[i]); pc.printf("\n\rstrV:");