hello
Revision 5:d53d5fa1f823, committed 2021-05-31
- Comitter:
- legrandpaul
- Date:
- Mon May 31 07:42:18 2021 +0000
- Parent:
- 4:4e7d663e26bd
- Commit message:
- this is my programme
Changed in this revision
LSM6DS33.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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