Rotate device to determine orientation