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.
Diff: PCF8574.cpp
- Revision:
- 1:ec8da0c59403
- Parent:
- 0:ab4e14b911ee
- Child:
- 2:e076d7b30aea
--- a/PCF8574.cpp Thu Jun 03 12:56:21 2010 +0000 +++ b/PCF8574.cpp Thu Jun 03 13:00:49 2010 +0000 @@ -30,12 +30,12 @@ int PCF8574::read() { char foo[1]; - _i2c.read(_addr, foo, 1); + _i2c.read(_address, foo, 1); return foo[0]; } void PCF8574::write(int data) { char foo[1]; foo[0] = data; - _i2c.write(_addr, foo, 1); + _i2c.write(_address, foo, 1); }