Changed the arduino script for the accelerometer controlled joystick.