View Single Post
  #4   Spotlight this post!  
Unread 01-15-2010, 03:56 PM
bcieslak
 
Posts: n/a
Re: Help with 2010 Accelerometer & I2C

One last thing...Don't try to turn on the measurement bit in the constructor.

There may be other objects associated with the I2C stuff that hasn't been constructed yet. Create an init method where you do the write and call it after you are sure all the construcing is done, like the first part of your main loop.

Brian

Reply With Quote