Fork of Eugene Gonzalez's version of LSM9DS1_Demo, Modified by Sherry Yang.
Fork of LSM6DS3 by
Revision 3:b705b62fbc1a, committed 2018-07-05
- Comitter:
- sid26
- Date:
- Thu Jul 05 01:31:06 2018 +0000
- Parent:
- 2:ed14e6196255
- Commit message:
- Set I2c frequency to 400kHz
Changed in this revision
LSM6DS3.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ed14e6196255 -r b705b62fbc1a LSM6DS3.cpp --- a/LSM6DS3.cpp Tue Jun 21 20:51:25 2016 +0000 +++ b/LSM6DS3.cpp Thu Jul 05 01:31:06 2018 +0000 @@ -3,6 +3,7 @@ LSM6DS3::LSM6DS3(PinName sda, PinName scl, uint8_t xgAddr) : i2c(sda, scl) { // xgAddress will store the 7-bit I2C address, if using I2C. + i2c.frequency(400000); xgAddress = xgAddr; }