Help with ADXL345.

Hey all, I have a couple ebay ADXL345 3 axis accelerometers, and need help getting them to work. I followed this quick start: ADXL345 Hookup Guide - SparkFun Learn

However I am only getting 0,0,0 as the output, nothing else.

XOIIO:
Hey all, I have a couple ebay ADXL345 3 axis accelerometers, and need help getting them to work. I followed this quick start: https://www.sparkfun.com/tutorials/240

However I am only getting 0,0,0 as the output, nothing else.

I recently used the Adafruit lib with a Chinese unit with good results:

mrburnette:

XOIIO:
Hey all, I have a couple ebay ADXL345 3 axis accelerometers, and need help getting them to work. I followed this quick start: ADXL345 Hookup Guide - SparkFun Learn

However I am only getting 0,0,0 as the output, nothing else.

I recently used the Adafruit lib with a Chinese unit with good results:
NEW PRODUCT – ADXL345 – Triple-Axis Accelerometer (+-2g/4g/8g/16g) w/ I2C/SPI « Adafruit Industries – Makers, hackers, artists, designers and engineers!

Hmm, getting the error "sensor_t" was not declared in this scope highlighting the very first one in the example sketch.

In file included from sensortest.pde:3:
C:\Users\XOIIO\Documents\Arduino\libraries\Adafruit_ADXL345_master/Adafruit_ADXL345_U.h:106: error: expected class-name before '{' token
C:\Users\XOIIO\Documents\Arduino\libraries\Adafruit_ADXL345_master/Adafruit_ADXL345_U.h:115: error: 'sensors_event_t' has not been declared
C:\Users\XOIIO\Documents\Arduino\libraries\Adafruit_ADXL345_master/Adafruit_ADXL345_U.h:116: error: 'sensor_t' has not been declared
sensortest.pde: In function 'void displaySensorDetails()':
sensortest:10: error: 'sensor_t' was not declared in this scope
sensortest:10: error: expected ;' before 'sensor' sensortest:11: error: 'sensor' was not declared in this scope sensortest.pde: In function 'void loop()': sensortest:141: error: 'sensors_event_t' was not declared in this scope sensortest:141: error: expected ;' before 'event'
sensortest:142: error: 'event' was not declared in this scope