test

Fork of MPU6050 by Simon Garfieldsg

Files at this revision

API Documentation at this revision

Comitter:
pyonta2017
Date:
Wed Sep 06 15:13:01 2017 +0000
Parent:
0:662207e34fba
Commit message:
?

Changed in this revision

I2Cdev.h Show annotated file Show diff for this revision Revisions of this file
MPU6050.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 662207e34fba -r 7e3b61131920 I2Cdev.h
--- a/I2Cdev.h	Fri Jan 11 00:54:28 2013 +0000
+++ b/I2Cdev.h	Wed Sep 06 15:13:01 2017 +0000
@@ -9,8 +9,8 @@
 
 #include "mbed.h"
 
-#define I2C_SDA p28
-#define I2C_SCL p27
+#define I2C_SDA p9
+#define I2C_SCL p10
 
 class I2Cdev {
     private:
diff -r 662207e34fba -r 7e3b61131920 MPU6050.cpp
--- a/MPU6050.cpp	Fri Jan 11 00:54:28 2013 +0000
+++ b/MPU6050.cpp	Wed Sep 06 15:13:01 2017 +0000
@@ -83,7 +83,7 @@
 #endif
 
     setClockSource(MPU6050_CLOCK_PLL_XGYRO);
-    setFullScaleGyroRange(MPU6050_GYRO_FS_250);
+    setFullScaleGyroRange(002);
     setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
     setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!