Utilities for i2c data connection. This is ported from https://github.com/jrowberg/i2cdevlib.

Dependents:   DISCO-F746NG_rtos_test

Fork of I2Cdev by Shundo Kishi

Files at this revision

API Documentation at this revision

Comitter:
TuxLeon
Date:
Sun Feb 11 18:32:25 2018 +0000
Parent:
0:3aa973ebe3e5
Commit message:
first commit

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	Sun Jan 31 13:52:23 2016 +0000
+++ b/I2Cdev.cpp	Sun Feb 11 18:32:25 2018 +0000
@@ -7,8 +7,9 @@
 // 2016-01-31 - changed all functions and variables static to make porting from arduino easier(by shundo kishi)
 
 #include "I2Cdev.h"
+#include "stm32746g_discovery.h"
 
-I2C I2Cdev::i2c(I2C_SDA,I2C_SCL);
+I2C I2Cdev::i2c(I2C_SDA, I2C_SCL);
 
 /** Default constructor.
  */
--- a/I2Cdev.h	Sun Jan 31 13:52:23 2016 +0000
+++ b/I2Cdev.h	Sun Feb 11 18:32:25 2018 +0000
@@ -11,9 +11,6 @@
 
 #include "mbed.h"
 
-#define I2C_SDA p28
-#define I2C_SCL p27
-
 class I2Cdev {
     private:
         static I2C i2c;