Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed rijo-mpu6050 MPU6050
Diff: rijompu6050.cpp
- Revision:
- 2:d4aaf6997c1a
- Parent:
- 1:a75f33f74f30
--- a/rijompu6050.cpp Sat Oct 10 01:28:40 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-#include "mbed.h"
-#include "MPU6050.h"
-Serial thinkdesk(USBTX, USBRX);
-int16_t ax, ay, az;
-int16_t gx, gy, gz;
-MPU6050 mpu(p9,p10);
-
-
-int main()
-{
-
-bool ok ;
-ok = mpu.testConnection();
-if(ok)
-{
-thinkdesk.printf("Test is ok!\n");
-mpu.setSleepMode(0); //THIS WILL GET THE SENSOR OUT OF SLEEP MODE.
-}
-else
-thinkdesk.printf("Test failed!\n");
-float data[3];
-while(1)
-{
-mpu.getAccelero( data );
-wait(1);
-thinkdesk.printf("%f;%f;%f;\n",data[0],data[1],data[2]);
-}
-}
-
-
-
-