Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: VL53L0X_Condensed
Diff: main.cpp
- Revision:
- 3:82e8968382d6
- Parent:
- 2:4d4fa82dbc59
- Child:
- 4:a876fbe13688
--- 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