Had this project from a while back as a fun demo of the MMA7361 and the serial connection to a processing sketch. Recently got a request on Vimeo to put the code on Github. So naturally I went to look for the file and discovered that I never saved it! So I spent a little time this evening rewriting some of it as a fun exercise.
Long story short.. success! And here is the original video demo for your viewing pleasure. Code for the project can be found at the link below :)
Github Link: github.com/mrgrantham/Accel-Demo
Companion Library: virtuabotix.com/product/virtuabotix-axis-accelerometer