temprary

Revision:
1:e16407b5e24f
Parent:
0:b502ea2d6ebb
--- a/MPU9250.h	Wed Jan 20 14:50:12 2016 +0000
+++ b/MPU9250.h	Fri Dec 20 11:49:05 2019 +0000
@@ -34,12 +34,12 @@
         MFS_16BITS      // 0.15 mG per LSB
     };
 
-    MPU9250(PinName sda, PinName scl, PinName tx, PinName rx, int address);
+    MPU9250(I2C * _i2c, Serial * _pc, int address);
     
     ~MPU9250() {}
 
-    Serial pc;
-    I2C i2c;
+    Serial *pc;
+    I2C *i2c;
     void writeByte(uint8_t address, uint8_t subAddress, uint8_t data);
     char readByte(uint8_t address, uint8_t subAddress);
     void readBytes(uint8_t address, uint8_t subAddress, uint8_t count, uint8_t * dest) ;