first release fork of MPU9250AHRS from Kris Winer
Dependents: mbed-os-i2c-test mbed-test-i2c-PCA-biquad-peakdet Mix-code-v2 mbed-os-step-counting ... more
Diff: MPU9250.cpp
- Revision:
- 1:c27bb1a0deca
- Parent:
- 0:76dc2aad77bc
- Child:
- 2:a17f66569378
diff -r 76dc2aad77bc -r c27bb1a0deca MPU9250.cpp --- a/MPU9250.cpp Wed Oct 05 10:33:45 2016 +0000 +++ b/MPU9250.cpp Wed Oct 05 10:40:48 2016 +0000 @@ -3,8 +3,9 @@ #include "MPU9250.h" -mpu9250::mpu9250(PinName _sda, PinName _scl) : i2c(_sda, _scl) -{ +mpu9250::mpu9250(PinName _sda, PinName _scl, uint8_t address) : i2c(_sda, _scl) +{ + MPU9250_ADDRESS = address; i2c.frequency(400000); }