Code for MMA7660 Accelerometer #COMP1045 competefornothing.com/?p=531