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.
Diff: LSM6DS33.h
- Revision:
- 5:d53d5fa1f823
- Parent:
- 4:4e7d663e26bd
--- a/LSM6DS33.h Thu Oct 06 23:28:32 2016 +0000
+++ b/LSM6DS33.h Mon May 31 07:42:18 2021 +0000
@@ -71,7 +71,7 @@
#define MD2_CFG 0x5F
// Possible I2C addresses for the accel/gyro
-#define LSM6DS33_AG_I2C_ADDR(sa0) ((sa0) ? 0xD6 : 0xD4)
+#define LSM6DS33_AG_I2C_ADDR 0xD6
/**
* LSM6DS33 Class - driver for the 6 DoF IMU
@@ -167,7 +167,7 @@
* - xgAddr = If MODE_I2C, this is the I2C address of the accel/gyro.
* If MODE_SPI, this is the chip select pin of the accel/gyro (CS_A/G)
*/
- LSM6DS33(PinName sda, PinName scl, uint8_t xgAddr = LSM6DS33_AG_I2C_ADDR(1));
+ LSM6DS33(PinName sda, PinName scl, uint8_t xgAddr = LSM6DS33_AG_I2C_ADDR);
/** begin() -- Initialize the gyro, and accelerometer.
* This will set up the scale and output rate of each sensor. It'll also