Made accelerometer for different board orientation.