我正在使用 Raspberry PI + BHI 160 穿梭板 + BMM150,如何使用任何二进制文件从传感器获取数据到 Raspberry PI?

I am using Raspberry PI + BHI 160 shuttle board + BMM150,How to get data from sensors into Raspberry PI using any binary?

我正在使用 Raspberry PI + BHI 160 穿梭板 + BMM150,如何使用二进制将数据导入 Raspberry PI。

我可以使用 this 驱动程序吗?

您链接到的代码是直接带到BMI160的驱动程序代码,BHI160是带有微控制器的BMI160。穿梭板的通信是与​​微控制器进行的,而不是 BMI160 - 所以很多代码对你没有帮助。

BHI160有一个I2C接口。有关如何在 RPi 上访问 I2C 的详细信息,请参阅 this tutorial. Then you should perhaps look at the documents and driver code at the product's web page for how to actually use the device. They include a link to examples and driver,其中包含一个包含驱动程序移植指南的文档文件夹(即如何将 BHI160 驱动程序与 RPi i2C 驱动程序和其他平台细节挂钩)。

还有其他 BHI160 特定应用说明 here

我真正想说的是阅读文档