a sensor hub for monitoring home environment
Dependencies: HTS221 LIS3MDL LPS22HB LSM303AGR LSM6DSL VL53L0X picojson
Fork of HelloWorld_ST_Sensors by
Diff: main.cpp
- Revision:
- 3:82e8968382d6
- Parent:
- 2:4d4fa82dbc59
- Child:
- 4:a876fbe13688
diff -r 4d4fa82dbc59 -r 82e8968382d6 main.cpp --- a/main.cpp Wed Sep 27 16:51:31 2017 +0200 +++ b/main.cpp Wed Sep 27 15:32:47 2017 +0000 @@ -63,10 +63,10 @@ static LPS22HBSensor press_temp(&devI2c); #ifdef TARGET_DISCO_L475VG_IOT01A -static LSM6DSLSensor acc_gyro(&devI2c,PD_11,NC,LSM6DSL_ACC_GYRO_I2C_ADDRESS_LOW); // low address +static LSM6DSLSensor acc_gyro(&devI2c,LSM6DSL_ACC_GYRO_I2C_ADDRESS_LOW,PD_11); // low address static LIS3MDL magnetometer(&devI2c); #else // X-NUCLEO_IKS01A2 -static LSM6DSLSensor acc_gyro(&devI2c,D4,D5); // high address (default) +static LSM6DSLSensor acc_gyro(&devI2c,LSM6DSL_ACC_GYRO_I2C_ADDRESS_HIGH,D4,D5); // high address static LSM303AGRMagSensor magnetometer(&devI2c); #endif