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.
Diff: MPU6050.h
- Revision:
- 15:11993501be6c
- Parent:
- 11:9b414412b09e
--- a/MPU6050.h Mon Feb 15 21:48:30 2021 +0000 +++ b/MPU6050.h Wed Mar 10 20:53:54 2021 +0000 @@ -103,7 +103,7 @@ * @param sda - mbed pin to use for the SDA I2C line. * @param scl - mbed pin to use for the SCL I2C line. */ - MPU6050(PinName sda, PinName scl); + MPU6050(I2C *i2cIn); /** @@ -321,7 +321,7 @@ private: - I2C connection; + I2C *connection; char currentAcceleroRange; char currentGyroRange; float alpha;