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.
Fork of MPU6050 by
Revision 4:5be37f1eb60c, committed 2017-09-07
- Comitter:
- OsmanKameric
- Date:
- Thu Sep 07 18:54:31 2017 +0000
- Parent:
- 3:b21c8c3456be
- Commit message:
- First;
Changed in this revision
I2Cdev.cpp | Show annotated file Show diff for this revision Revisions of this file |
I2Cdev.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r b21c8c3456be -r 5be37f1eb60c I2Cdev.cpp --- a/I2Cdev.cpp Tue Aug 01 15:03:01 2017 +0000 +++ b/I2Cdev.cpp Thu Sep 07 18:54:31 2017 +0000 @@ -7,12 +7,12 @@ #define useDebugSerial -I2Cdev::I2Cdev(): i2c(p26,p27) +I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL) { } -I2Cdev::I2Cdev(PinName p26, PinName p27): i2c(p26,p27) +I2Cdev::I2Cdev(PinName SDA, PinName SCL): i2c(SDA,SCL) { }
diff -r b21c8c3456be -r 5be37f1eb60c I2Cdev.h --- a/I2Cdev.h Tue Aug 01 15:03:01 2017 +0000 +++ b/I2Cdev.h Thu Sep 07 18:54:31 2017 +0000 @@ -9,8 +9,8 @@ #include "mbed.h" -#define I2C_SDA p26 -#define I2C_SCL p27 +#define I2C_SDA PB_9 +#define I2C_SCL PB_8 //extern Serial pc; class I2Cdev { private: