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.
Revision 6:34744274e63e, committed 2019-06-02
- Comitter:
- dimavb
- Date:
- Sun Jun 02 14:42:06 2019 +0000
- Parent:
- 5:e5bb35ac2c61
- Commit message:
- start
Changed in this revision
PCF8575.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e5bb35ac2c61 -r 34744274e63e PCF8575.cpp --- a/PCF8575.cpp Thu Aug 25 08:00:41 2011 +0000 +++ b/PCF8575.cpp Sun Jun 02 14:42:06 2019 +0000 @@ -31,6 +31,7 @@ int PCF8575::read() { char foo[2]; _i2c.read(_address, foo, 2); + return (foo[1] << 8) | foo[0]; }