Quote:
Originally Posted by urg8rb8
We tested out the code for the I2C Accelerometer and we seem to be having some issues. We are doing the following:
Code:
ADXL345DigitalAccelerometer accelerometer;
accelerometer = ADXL345DigitalAccelerometer(4);
accelerometer.initialize();
accelerometer.getZAxis();
For some reason, the code is getting blocked in the initialize() call and never returns out of it. We have the accelerometer plugged into the correct header on the sidecar and we do not have the "blob of solder" on the jumper so we are using the default address that is coded in the class object. What could be the problem?
Any help would be appreciated!
|
Is your sidecar powered? Is the clock line shorted? Will unplugging the sensor allow the initialize method to return?