obj-$(CONFIG_DA228E_ACC) += mir3da_core.o mir3da_cust.o
+config DA228E_ACC
- tristate "gsensor da228e_acc"
- default n
- help
- To have support for your specific gsesnor you will have to
- select the proper drivers which depend on this option.
dts配置
旋转方向
修改layout的值{1,2,3,4,}
安卓上层默认自动旋转
默认自动旋转屏幕:
def_accelerometer_rotation