Datasheet

The setDataRate() function sets the rate at which the sensor output is updated. Rates above
100 Hz will exhibit increased noise. Rates below 6.25 Hz will be more sensitive to
temperature variations. See the data sheet (http://adafru.it/c5e) for details.
Valid data rate constants are:
ADXL345_DATARATE_3200_HZ
ADXL345_DATARATE_1600_HZ
ADXL345_DATARATE_800_HZ
ADXL345_DATARATE_400_HZ
ADXL345_DATARATE_200_HZ
ADXL345_DATARATE_100_HZ
ADXL345_DATARATE_50_HZ
ADXL345_DATARATE_25_HZ
ADXL345_DATARATE_12_5_HZ
ADXL345_DATARATE_6_25HZ
ADXL345_DATARATE_3_13_HZ
ADXL345_DATARATE_1_56_HZ
ADXL345_DATARATE_0_78_HZ
ADXL345_DATARATE_0_39_HZ
ADXL345_DATARATE_0_20_HZ
ADXL345_DATARATE_0_10_HZ (default value)
dataRate_t getDataRate(void);
The getDataRate() function returns the current data rate as set by setDataRate().
Reading Sensor Events:
void getEvent(sensors_event_t*);
The getEvent() function returns the next available reading in the form of a sensor_event. The
sensor_event contains the sensor_id as passed to the constructor as well as the X, Y and Z
axis readings from the accelerometer. For more information about sensor_events, see the
ReadMe file (http://adafru.it/aZm) for the Adafruit Sensor Library.
© Adafruit Industries Last Updated: 2014-05-07 03:00:10 PM EDT Page 17 of 17