kutenda:
I have the MMA7361, how do I program this to do the command?
It has the XYZ pins on the board, so all you need to do is use an analogRead of each axis, and see what it produces.
There is a library and example sketch for that module here in this link.