ジャイロ

Dependents:   00_yotsuba 103_JY901_practice 200_yotsuba_21 200_yotuba_21_uiChange

Revision:
3:1f630a1d7ed1
Parent:
0:f80d034ed481
Child:
4:0f89370330ff
Child:
7:9fa716a2100a
diff -r a93909601341 -r 1f630a1d7ed1 jy901.cpp
--- a/jy901.cpp	Wed Aug 23 06:14:28 2017 +0000
+++ b/jy901.cpp	Fri Jan 31 09:20:37 2020 +0000
@@ -39,6 +39,12 @@
     endCalibrate();
 }
 
+void JY901::jyroReset()
+{
+    char calibrationRegistar[3]= {0x01,0x04,0x00};
+    write(IICADDR,calibrationRegistar,3,false);
+}
+
 float JY901::getXaxisAcceleration()
 {
     char *data = getdata(AX);