回転数計のクラスです。

Dependencies:   mbed

Revision:
2:b492f029a2f4
Parent:
1:6bceac3446ff
Child:
3:0986b5d80ded
--- a/main.cpp	Wed Nov 23 05:31:01 2016 +0000
+++ b/main.cpp	Wed Nov 23 06:06:29 2016 +0000
@@ -17,8 +17,9 @@
         wait(0.2);
         pc.printf("test\n\r");
         pc.printf("cadence: %f\n\r",cadence.cadence);
+        pc.printf("%s\n\r",cadence.strC);
         pc.printf("voltage: %f\n\r",cadence.cadenceV);
-        pc.printf("'%c'\n\r",cadence.data[cadence.data_count-1]);
-        cadence.cadenceRead();
+        cadence.readData();
+        pc.printf("'%c!\n\r",cadence.strData[0]);
     }
 }