unfinished

Dependents:   WRS_mechanamu_test WRS2019_master mbed_2018 mbed_2019_rx3 ... more

Revision:
2:5af50b300137
Parent:
1:6bcbd18a719a
Child:
3:b0aecd9a3cc9
--- a/JY901.h	Sun Feb 04 13:41:04 2018 +0000
+++ b/JY901.h	Sat Apr 28 03:55:58 2018 +0000
@@ -3,6 +3,21 @@
 
 #include "mbed.h"
 
+/*example*************************************
+JY901 i2c(dp5, dp27);
+
+int main()
+{
+    float angle = 0;
+    i2c.calibrateAll(5000);
+    while(1)
+    {
+        angle = i2c.getZaxisAngle();
+        printf("%f\r\n", angle);
+    }
+}
+**********************************************/
+
 #define IICADDR     0xa0 // IIC address 
 #define g           9.8  // Acceleration of gravity
 
@@ -107,7 +122,6 @@
     float getD1Status();
     float getD2Status();
     float getD3Status();
-    int getmode(float (JY901::*getFunc)(), const int kaisu);
     
     /*dnt use   I correct someday*********/
     float getPressure();