   
   // I2C routines to talk to 8574 and 8574A
   void expanderSetInput(int i2caddr, byte dir) {
-  Wire.beginTransmission(INaddr);
-  Wire.send(dir);  // outputs high for input
+  Wire.beginTransmission(ExpAddress);
+  Wire.write(dir);  // outputs high for input
   Wire.endTransmission();    
 }
 


#include <SI114.h>
#include <Si114_defs.h>
#include <Adafruit_FRAM_I2C.h>

  int _data = -1;
  Wire.requestFrom(i2caddr, 1);
  if(Wire.available()) {
    _data = Wire.read();
  }
  return _data;
}
