View Single Post
  #12   Spotlight this post!  
Unread 21-01-2012, 01:37
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Accelerometer Showing All Zeros

Quote:
Originally Posted by theprgramerdude View Post
Does the built-in ADXL345_I2C class do this automatically when the constructor is called, or do we have to do something else, like use the I2C class?
It does it for you; take a peak at the ADXL345_I2C source code and you can see it right there.

Code:
m_i2c.write(kPowerCtlRegister, kPowerCtl_Measure);
Reply With Quote