LSM9DS1 IMU sensor driver i2c

Dependents:   read_Pmod optWingforHAPS_Eigen hexaTest_Eigen

Revision:
2:9e0ac1cd9d79
Parent:
0:622e8874902e
Child:
5:f44765a174ab
diff -r 0e76f237c23d -r 9e0ac1cd9d79 LSM9DS1.cpp
--- a/LSM9DS1.cpp	Mon Oct 19 13:56:52 2015 +0000
+++ b/LSM9DS1.cpp	Mon Sep 27 08:59:25 2021 +0000
@@ -1,6 +1,6 @@
 #include "LSM9DS1.h"
 
-LSM9DS1::LSM9DS1(PinName sda, PinName scl, uint8_t xgAddr, uint8_t mAddr) : i2c(sda, scl)
+LSM9DS1::LSM9DS1(I2C& p_i2c, uint8_t xgAddr, uint8_t mAddr) : i2c(p_i2c)
 {
     // xgAddress and mAddress will store the 7-bit I2C address, if using I2C.
     xgAddress = xgAddr;