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

      if (ch > 'Z')
        ch = 'A';
    }

    // send is queued (the ble stack delays send to the start of the next tx window)
    while (! RFduinoBLE.send(buf, 20))
      ;  // all tx buffers in use (can't send - try again later)

    {
      int end = millis();
      float secs = (end - start) / 1000.0;
      int bps = ((packets * 20) * 8) / secs; 
      Serial.println("Finished");
      Serial.println(start);
      Serial.println(end);
