欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2887|回復(fù): 0
收起左側(cè)

QMA6981計步器配置

[復(fù)制鏈接]
ID:366097 發(fā)表于 2018-7-6 21:08 | 顯示全部樓層 |閱讀模式
  固定4步來一個中斷,停止走路時再來一個中斷,靈敏度是10寄存器

        bResult = gsensor_i2c_write_byte(0x10, 0x2a);
        bResult =  gsensor_i2c_write_byte(0x0f, 0x04);

        bResult = gsensor_i2c_write_byte(0x12, 0x8f);
        bResult = gsensor_i2c_write_byte(0x13, 0x10);
        bResult = gsensor_i2c_write_byte(0x14, 0x14);
        bResult = gsensor_i2c_write_byte(0x15, 0x10);
        bResult = gsensor_i2c_write_byte(0x32, 0x02);

        bResult = gsensor_i2c_write_byte(0x27, 0x60);
        bResult = gsensor_i2c_write_byte(0x28, 0x60);
        bResult = gsensor_i2c_write_byte(0x29, 0x60);

        bResult = gsensor_i2c_write_byte(0x16, 0x08);
        bResult = gsensor_i2c_write_byte(0x19, 0x08);
        bResult = gsensor_i2c_write_byte(0x20, 0x00); // 低電平或者下降沿觸發(fā)
        //bResult = gsensor_i2c_write_byte(0x20, 0x05);// 高電平或者上升沿觸發(fā)       

        bResult = gsensor_i2c_write_byte(0x11, 0x80);
       
       
        固定4步來一個中斷,停止走路時再來一個中斷,靈敏度是10寄存器

回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表