/* Read the device ID (can be used to check connection)  */
adxl345Error_t adxl345GetDeviceID(uint8_t *id)
/* Read the device ID (can be used to check connection)  */
adxl345Error_t adxl345GetDeviceID(uint8_t *id)
{
  adxl345Error_t error = ADXL345_ERROR_OK;
  error = adxl345Read8(ADXL345_REG_DEVID, id);
  return error;
}