自分用に改造

Dependents:   MPU6050_test sample_MPU6050 nucleo_sample_MPU6050 sample_MPU6050_for_nucleo ... more

Fork of MPU-6050 by being block

Files at this revision

API Documentation at this revision

Comitter:
beingblock
Date:
Tue May 24 08:28:20 2016 +0000
Parent:
7:ea53dc62603d
Commit message:
first commit

Changed in this revision

MPU6050.h Show annotated file Show diff for this revision Revisions of this file
diff -r ea53dc62603d -r 15523fc1427d MPU6050.h
--- a/MPU6050.h	Sun May 15 09:33:34 2016 +0000
+++ b/MPU6050.h	Tue May 24 08:28:20 2016 +0000
@@ -42,9 +42,9 @@
         // Using the GY-521 breakout board, I set ADO to 0 by grounding through a 4k7 resistor
         // Seven-bit device address is 110100 for ADO = 0 and 110101 for ADO = 1
         if(ad0 == 0) {
-            adr = 0x68;
+            adr = 0x68 << 1;
         } else {
-            adr = 0x69;
+            adr = 0x69 << 1;
         }
 
         // Specify sensor full scale