Slightly modified version (to work with processing GUI)

Dependencies:   ITG3200 mbed

Fork of 6DoF_IMU_readvalue by Ryo Nakabayashi

Revision:
4:c7d5863b2576
Parent:
0:cda6d9f5a43c
Child:
5:e4a11d519322
--- a/ADXL345_I2C.cpp	Tue Oct 22 00:13:07 2013 +0000
+++ b/ADXL345_I2C.cpp	Thu Oct 24 20:31:54 2013 +0000
@@ -16,8 +16,7 @@
  *                  but according to the Spirit."
  *
  *  A special thanks to Ewout van Bekkum for all his patient help in developing this library!
- *
- * @section LICENSE
+ * * @section LICENSE
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -60,7 +59,7 @@
 // initialize the BW data rate
     char tx[2];
     tx[0] = ADXL345_BW_RATE_REG;
-    tx[1] = ADXL345_1600HZ; //value greater than or equal to 0x0A is written into the rate bits (Bit D3 through Bit D0) in the BW_RATE register 
+    tx[1] = ADXL345_6HZ25; //value greater than or equal to 0x0A is written into the rate bits (Bit D3 through Bit D0) in the BW_RATE register 
  i2c_.write( ADXL345_I2C_WRITE , tx, 2);  
 
 //Data format (for +-16g) - This is done by setting Bit D3 of the DATA_FORMAT register (Address 0x31) and writing a value of 0x03 to the range bits (Bit D1 and Bit D0) of the DATA_FORMAT register (Address 0x31).
@@ -70,7 +69,6 @@
     rx[1] = 0x0B; 
      // full res and +_16g
  i2c_.write( ADXL345_I2C_WRITE , rx, 2); 
- 
  // Set Offset  - programmed into the OFSX, OFSY, and OFXZ registers, respectively, as 0xFD, 0x03 and 0xFE.
   char x[2];
     x[0] = ADXL345_OFSX_REG ;