Accelerometer help (MMA7260Q)

26 Mar 2011

Hey! I am trying to connect up MMA7260Q to the mbed. At the moment I am not as good with C and sometimes get stuck. I have found a program written by Hiroshi Yamaguchi. I did contact him as well. But not sure if he will answer. http://mbed.org/users/yamaguch/libraries/accelerometer/lnndr0/docs/Accelerometer_8h_source.html Firstly I am not sure how to deffine these pins, set in the program. Secondly, the whole thing wont compile. My best guess was just to:

  1. define xPin (p5)
  2. define yPin (p6)

etc... Can anyone help me out on this one? Thank you!

26 Mar 2011

Yamaguchi-san has posted a sample program that may help clarify things.

See http://mbed.org/users/yamaguch/programs/AccelerometerMMA7260Q/lnmvp4/docs/main_8cpp_source.html.

30 Mar 2011

Hexley Ball wrote:

Yamaguchi-san has posted a sample program that may help clarify things.

See http://mbed.org/users/yamaguch/programs/AccelerometerMMA7260Q/lnmvp4/docs/main_8cpp_source.html.

Thanks! Will try it out! For some reason I didn't notice this program.