test gyro

Dependencies:   R1370

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Tue Apr 30 05:46:18 2019 +0000
Commit message:
gyro

Changed in this revision

R1370.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 9ce4c982b6cb R1370.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/R1370.lib	Tue Apr 30 05:46:18 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/tknara/code/R1370/#96f91d9e3bff
diff -r 000000000000 -r 9ce4c982b6cb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 30 05:46:18 2019 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "R1370.h"
+
+R1370 R1370(D10,D2);
+Serial pc(USBTX, USBRX, 115200);
+
+void main()
+{
+    while(1)
+    {
+        R1370.update();
+        pc.printf("%.4lf\r\n", R1370.getAngle());
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 9ce4c982b6cb mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Apr 30 05:46:18 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#c9e63f14085f5751ff5ead79a7c0382d50a813a2