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.
Dependents: GR-PEACH_test_wo_rtos GR-PEACH_test_on_rtos_works_well Skywire_Demo_3 Skywire_Kinetis_K64_demo ... more
Revision 2:cc943f8d76a2, committed 2014-12-07
- Comitter:
- kenjiArai
- Date:
- Sun Dec 07 11:46:11 2014 +0000
- Parent:
- 1:d4d569952436
- Child:
- 3:de2cf61c0a58
- Commit message:
- bug fix in read_reg_data()
Changed in this revision
| LIS3DH.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LIS3DH.cpp Sun Sep 07 01:26:25 2014 +0000
+++ b/LIS3DH.cpp Sun Dec 07 11:46:11 2014 +0000
@@ -77,8 +77,8 @@
// In other words, SUB(7) must be equal to ‘1’ while SUB(6-0) represents the address
// of the first register to be read.
dbf[0] = LIS3DH_OUT_X_L | 0x80;
- i2c.write(acc_addr, dbf, 1, true);
- i2c.read(acc_addr, data, 6, false);
+ i2c.write(acc_addr, dbf, 1);
+ i2c.read(acc_addr, data, 6);
}
void LIS3DH::read_mg_data(float *dt) {