Interface code for ADXL and BLE