


(
激光测距VL53L0X模块i2c能够正常通信,寄存器都能正常读取,代码用的正点原子的代码,但是代码出现异常,能够正常初始化,但是执行标定流程的时候出错,返回值是-6(VL53L0X_ERROR_RANGE_ERROR),API Status: -6 : Range error,跟踪代码发现最终异常函数是VL53L0X_GetInterruptMaskStatus
file:///C:UsersAdministratorAppDataRoamingfeiqRichOle3527665999.bmpfile:///C:UsersAdministratorAppDataRoamingfeiqRichOle3527665999.bmp
在if分支出错,if(Byte & 0x18),我读取模块的寄存器值是0x48
不知道0x18具体每个位是什么意思,
也不知道具体出错原因?
请大神们帮忙分析下原因,多谢
一周热门 更多>