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.
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; }