This is a device driver of AK8963, which is 3-axis magnetometer manufactured by AKM.
Dependents: SimpleSample combination combination
Revision 2:9dff393e5e86, committed 2015-09-04
- Comitter:
- coisme
- Date:
- Fri Sep 04 23:39:10 2015 +0000
- Parent:
- 1:a362b9e3aac2
- Commit message:
- maintainance
Changed in this revision
ak8963.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a362b9e3aac2 -r 9dff393e5e86 ak8963.cpp --- a/ak8963.cpp Tue Aug 18 18:06:02 2015 +0000 +++ b/ak8963.cpp Fri Sep 04 23:39:10 2015 +0000 @@ -98,7 +98,7 @@ data[1+i] = buf[i]; } - // Writes a start address. Doesn't send a stop condition. + // Writes data if (connection->write((slaveAddress << 1), data, bufLength) != 0) { // I2C write failed. return AK8963::ERROR_I2C_WRITE;