Ported from Arduino Library : https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Dependents:   kopija_NUCLEO_CELL_LOCKER_copy

Fork of MPU6050 by Simon Garfieldsg

Files at this revision

API Documentation at this revision

Comitter:
OsmanKameric
Date:
Tue Nov 07 16:34:43 2017 +0000
Parent:
3:b21c8c3456be
Commit message:
CELL LOCKER

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
--- a/I2Cdev.cpp	Tue Aug 01 15:03:01 2017 +0000
+++ b/I2Cdev.cpp	Tue Nov 07 16:34:43 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)
 {
 
 }
--- a/I2Cdev.h	Tue Aug 01 15:03:01 2017 +0000
+++ b/I2Cdev.h	Tue Nov 07 16:34:43 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: