Ported from Arduino Library : https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
Dependents: kopija_NUCLEO_CELL_LOCKER_copy
Fork of MPU6050 by
Diff: I2Cdev.h
- Revision:
- 2:e2081d9de7af
- Parent:
- 0:662207e34fba
- Child:
- 3:b21c8c3456be
diff -r 1e0baaf91e96 -r e2081d9de7af I2Cdev.h --- a/I2Cdev.h Wed May 08 00:34:55 2013 +0000 +++ b/I2Cdev.h Wed Feb 01 11:09:14 2017 +0000 @@ -9,9 +9,9 @@ #include "mbed.h" -#define I2C_SDA p28 +#define I2C_SDA p26 #define I2C_SCL p27 - +extern Serial pc; class I2Cdev { private: I2C i2c; @@ -39,6 +39,7 @@ bool writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data); static uint16_t readTimeout(void); + void frequency(uint8_t freq); }; #endif \ No newline at end of file