|
楼主 |
发表于 2017-7-9 22:57:28
|
显示全部楼层
[i = s] posts by joric in 2017-7-9 23:40 Edit
[i = s] posts by joric in 2017-7-9 23:13 Edit
Found accelerometer mod that correcly shows all three coordinates (replace stock MMA8652FC.* with its ones): Firmware of TS100 single button operation(accelerated sensors application). Looks like tilt can be determined using its Get_XYZDrt function, e.g. own_sprintf(str,"%d %d %d", Get_XYZDrt(AXIS_X), Get_XYZDrt(AXIS_Y), Get_XYZDrt(AXIS_Z)) shows "1 1 0" with left tilt and "1 0 0" with right tilt. I suggest adding these accelerometer fixes in the next firmware release. I've personally got a working screen autorotation in this branch: https://github.com/joric/ts100tris/tree/autorotate |
|