Changed default pin defines to match those available on MTS boards
Dependencies: HTS221 LPS22HB LSM303AGR LSM6DSL
Fork of X_NUCLEO_IKS01A2 by
Diff: XNucleoIKS01A2.cpp
- Revision:
- 13:138a7a28bd21
- Parent:
- 6:671fd10a51b7
diff -r a8b764804890 -r 138a7a28bd21 XNucleoIKS01A2.cpp --- a/XNucleoIKS01A2.cpp Thu Sep 07 14:47:05 2017 +0000 +++ b/XNucleoIKS01A2.cpp Wed Sep 27 15:47:14 2017 +0000 @@ -48,11 +48,11 @@ * @brief Constructor */ XNucleoIKS01A2::XNucleoIKS01A2(DevI2C *ext_i2c, PinName int1, PinName int2) : dev_i2c(ext_i2c), - ht_sensor(new HTS221Sensor(*dev_i2c)), - magnetometer(new LSM303AGRMagSensor(*dev_i2c)), - accelerometer(new LSM303AGRAccSensor(*dev_i2c)), - pt_sensor(new LPS22HBSensor(*dev_i2c)), - acc_gyro(new LSM6DSLSensor(*dev_i2c, int1, int2)) + ht_sensor(new HTS221Sensor(dev_i2c)), + magnetometer(new LSM303AGRMagSensor(dev_i2c)), + accelerometer(new LSM303AGRAccSensor(dev_i2c)), + pt_sensor(new LPS22HBSensor(dev_i2c)), + acc_gyro(new LSM6DSLSensor(dev_i2c, LSM6DSL_ACC_GYRO_I2C_ADDRESS_HIGH, int1, int2)) { ht_sensor->init(NULL); magnetometer->init(NULL);