Interfacing

accelerometer

1 531
Edited by xphoenix at Mar 29, 2016 14:38

Hi,
I was wondering how to use an accelerometer to rotate the screen like this model



I guess GPIO wiring might be like that

But i like if some one can drive me to write a program under Python runs in the background can rotate screen by axis data recieved from the accelerometer

There is no developpers here ?? or just support to answer us ! i'v just asked something simple and at least i must get an answer theres much drivers for accelro/gyro i2c sensors that works nice on android i know orientation depnds on sensor to change the screen orientation automatically based on the position something like  android:screenOrientation = "sensor" in the manifest file as follows

<activity android:name=".MyActivity"
android:screenOrientation="sensor"
android:label="@string/app_name">

You have to log in before you can reply Login | Sign Up

Points Rules