Thread: Accelerometer
View Single Post
  #8   Spotlight this post!  
Unread 01-02-2011, 22:10
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Accelerometer

Quote:
Originally Posted by basicxman View Post
Are you using the ADXL345? In which case you need to use the ADXL345_I2C class, not the Accelerometer class.
Quite correct.

Quote:
Again, what is I2C? A macro? A constant?
In the code Elliot posted, I2C is undefined. That's why the compiler choked on it.
Reply With Quote