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-DMP-Ian by
Revision 16:ae51ac8b7cf1, committed 2015-06-10
- Comitter:
- flywind
- Date:
- Wed Jun 10 12:55:30 2015 +0000
- Parent:
- 15:305906acd732
- Commit message:
- update I2c address
Changed in this revision
I2C/I2Cdev.cpp | Show annotated file Show diff for this revision Revisions of this file |
I2C/I2Cdev.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 305906acd732 -r ae51ac8b7cf1 I2C/I2Cdev.cpp --- a/I2C/I2Cdev.cpp Wed Jun 10 10:00:15 2015 +0000 +++ b/I2C/I2Cdev.cpp Wed Jun 10 12:55:30 2015 +0000 @@ -9,13 +9,13 @@ I2Cdev::I2Cdev(): i2c(I2C_SDA,I2C_SCL), debugSerial(USBTX, USBRX) { - i2c.frequency(400000); + i2c.frequency(200000); debugSerial.baud(115200); } I2Cdev::I2Cdev(PinName i2cSda, PinName i2cScl): i2c(i2cSda,i2cScl), debugSerial(USBTX, USBRX) { - i2c.frequency(400000); + i2c.frequency(200000); debugSerial.baud(115200); }
diff -r 305906acd732 -r ae51ac8b7cf1 I2C/I2Cdev.h --- a/I2C/I2Cdev.h Wed Jun 10 10:00:15 2015 +0000 +++ b/I2C/I2Cdev.h Wed Jun 10 12:55:30 2015 +0000 @@ -9,8 +9,8 @@ #include "mbed.h" -#define I2C_SDA p9 -#define I2C_SCL p10 +#define I2C_SDA p12 +#define I2C_SCL p13 class I2Cdev {