first release fork of MPU9250AHRS from Kris Winer

Dependents:   step_counter_service_ble

Files at this revision

API Documentation at this revision

Comitter:
elessair
Date:
Wed Oct 05 10:43:26 2016 +0000
Parent:
1:c27bb1a0deca
Commit message:
i2c address

Changed in this revision

MPU9250.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c27bb1a0deca -r a17f66569378 MPU9250.cpp
--- a/MPU9250.cpp	Wed Oct 05 10:40:48 2016 +0000
+++ b/MPU9250.cpp	Wed Oct 05 10:43:26 2016 +0000
@@ -5,7 +5,7 @@
 
 mpu9250::mpu9250(PinName _sda, PinName _scl, uint8_t address) : i2c(_sda, _scl)
 {    
-    MPU9250_ADDRESS = address;
+    MPU9250_ADDRESS = address << 1;
     i2c.frequency(400000);
 }