Slight changes to support specific application

Dependents:   ColourSensor

Fork of PCF8574 by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Thu Jun 03 13:00:49 2010 +0000
Parent:
0:ab4e14b911ee
Child:
2:6c22af0aafbb
Commit message:

Changed in this revision

PCF8574.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
 }