Hi,
BMA253 orientation interrupt gives you rough estimation if the device has changed its orientation or not. Since you can get BMA253 x/y/z data at the same time, you can quickly calculate the pitch and roll angle to verify the real current orientation after the orientation interrupt is generated. Then you can determine if you need to change the screen orientation or not.
Please fine tune the parameters such as theta, hysteresis, etc. to achieve what you really want.
Thanks.
... View more