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.
Dependents: step_counter_service_ble
Revision 2:a17f66569378, committed 2016-10-05
- 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 |
--- 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);
}