Minh Nguyen / MPU6050
Revision:
15:11993501be6c
Parent:
11:9b414412b09e
--- a/MPU6050.h	Mon Feb 15 21:48:30 2021 +0000
+++ b/MPU6050.h	Wed Mar 10 20:53:54 2021 +0000
@@ -103,7 +103,7 @@
      * @param sda - mbed pin to use for the SDA I2C line.
      * @param scl - mbed pin to use for the SCL I2C line.
      */
-     MPU6050(PinName sda, PinName scl);
+     MPU6050(I2C *i2cIn);
      
 
      /**
@@ -321,7 +321,7 @@
      
      private:
 
-     I2C connection;
+     I2C *connection;
      char currentAcceleroRange;
      char currentGyroRange;
      float alpha;