View Single Post
  #23   Spotlight this post!  
Unread 04-02-2010, 18:57
urg8rb8 urg8rb8 is offline
Registered User
FRC #0108
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Plantation
Posts: 23
urg8rb8 is an unknown quantity at this point
Re: 2010 Accelerometer I2C Object/Class

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!
Reply With Quote