Sample code for MMA8452Q accelerometer

photon
Tags: #<Tag:0x00007fe21f6f72b0>

#1

Hi everyone,
I am trying to interface my MMA8452Q accelerometer to my particle photon. I saw few sample codes for the same sensor that would work in an arduino board. But, i couldn’t successfully covert to particle format.
Could anyone share sample code for sensing MMA8452Q sensor in particle argon?
Thank you in advance.

@ScruffR @bko @RWB @kennethlimcp can you kindly help?


#2

If you could share what you found and what you tried we may be able to advise how you could port that library.
Without that particular sensor we could get your code to compile but wouldn’t be able to test it.