 void expanderWrite(int i2caddr, byte data)
 {
   Wire.beginTransmission(i2caddr);
-  Wire.write(data);
-  Wire.endTransmission();
+  Wire.send(data);
+  Wire.endTransmission();   
+}
+  
+ 
 }
 
 void RFduinoBLE_onConnect() {

<<<<<<< HEAD

#include <SI114.h>
#include <Si114_defs.h>
#include <Adafruit_Sensor.h>
=======
>>>>>>> 6811018fcbb7d8bc21624b9e48436b8a1cf7285a
#include <Adafruit_FRAM_I2C.h>
#include <Adafruit_TMP006.h>
#include <Adafruit_Sensor.h>



// send 500 20 byte buffers = 10000 bytes
int packets = 500; 

// flag used to start sending
int flag = false;
