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 MMA7660 by
Revision 5:084e1f9ab548, committed 2015-04-15
- Comitter:
- green_hatano
- Date:
- Wed Apr 15 13:29:29 2015 +0000
- Parent:
- 4:36a163511e34
- Commit message:
- ?
Changed in this revision
MMA7660.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA7660.cpp Tue May 13 18:14:34 2014 +0000 +++ b/MMA7660.cpp Wed Apr 15 13:29:29 2015 +0000 @@ -156,14 +156,14 @@ char MMA7660::read(char address) { char retval; - _i2c.write(MMA7660_ADDRESS, &address, 1, true); +// _i2c.write(MMA7660_ADDRESS, &address, 1, true); _i2c.read(MMA7660_ADDRESS, &retval, 1); return retval; } void MMA7660::read(char address, char *data, int length) { - _i2c.write(MMA7660_ADDRESS, &address, 1, true); +// _i2c.write(MMA7660_ADDRESS, &address, 1, true); _i2c.read(MMA7660_ADDRESS, data, length); }