nutty bauty

Dependencies:   MPU6050 mbed

Files at this revision

API Documentation at this revision

Comitter:
jnjtnutty
Date:
Fri Dec 08 10:17:36 2017 +0000
Commit message:
gyro

Changed in this revision

MPU6050.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.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MPU6050.lib	Fri Dec 08 10:17:36 2017 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/moklumbys/code/MPU6050/#9b414412b09e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 08 10:17:36 2017 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "MPU6050.h"
+
+MPU6050 mpu(D14,D15);
+Serial pc(D1,D0);
+int main() {
+   int i =0 , j=0, k=0;
+   //float *data[3];
+   //float set[2];
+   mpu.testConnection();
+   pc.printf("hello world/n");
+   while(1){
+       //pc.printf("bamlor\n");
+       i = mpu.getAcceleroRawX();
+       j = mpu.getAcceleroRawY();
+       k = mpu.getAcceleroRawZ();
+       //mpu.getAccelero(*data);
+       //mpu.setGyroRange(*data);
+       //mpu.getGyro(*data);
+       wait(0.2);
+       pc.printf("%d %d %d\n",i,j,k);
+       //pc.printf("%f %f %f\n",data[0], data[1], data[2]) ;
+   }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 08 10:17:36 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600
\ No newline at end of file