mma8451 breakout

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
lamontd
 
Posts: 5
Joined: Fri Feb 01, 2019 6:41 pm

mma8451 breakout

Post by lamontd »

Hi,
I have a quantity of these winging their way to me.
Meanwhile I have been writing the code for a sun tracked
solar array.
The demo program allowed me to get my head around the
fundamentals of the device.

I want to manipulate the device's data rate but for some reason
I cannot get the call syntax correct.

mma.setDataRate(MMA8541 etc etc

My 90 year old brain is failing me, so please advise

Regards Dave Lamont

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: mma8451 breakout

Post by Franklin97355 »

Code: Select all

mma.setDataRate(MMA8541_DATARATE_800_HZ)
should work. Which program are you running?

User avatar
lamontd
 
Posts: 5
Joined: Fri Feb 01, 2019 6:41 pm

Re: mma8451 breakout

Post by lamontd »

franklin97355 wrote:

Code: Select all

mma.setDataRate(MMA8541_DATARATE_800_HZ)
should work. Which program are you running?
I would not have worked that out
Thank you Franklin. Running the devices demo firstly
Kind Regards
Dave Lamont

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”