added the code i used on the arduino to test the accelerometer.