以下是我对MMA8452Q初始化的设置,摇晃时INT1就是没中断,请问哪里设置不对?谢谢
void Init_MMA8452() //初始化
{
Single_Write_MMA8452(0x2A,0x18); //100HZ ODR
Single_Write_MMA8452(0x15,0xD8); //运动检测设置阀值,X,Y轴 0XF8三轴
Single_Write_MMA8452(0x17,0X30); //运动检测设置阀值为48 OK
Single_Write_MMA8452(0x18,0x0A); //100毫秒去抖时间
Single_Write_MMA8452(0x2D,0x04); //设置运动中断
Single_Write_MMA8452(0x2E,0x04); //设置运动中断脚为INT1
Single_Write_MMA8452(0x2A,0x19); //100HZ ODR
} |