:22.009KB : :1 :2022-08-24 10:59:21
Gravity: BMI160 6轴惯性运动传感器如果开发者对于本文件有需要的可以参考。BMI160 6轴惯性运动传感器。
#include
DFRobot_BMI160 bmi160;
const int8_t i2c_addr = 0x69;
bool readStep = false;
#if defined ARDUINO_AVR_UNO || defined ARDUINO_AVR_MEGA2560 || defined ARDUINO_AVR_PRO
//interrupt number of uno and mega2560 is 0
int pbIn = 2;
#elif ARDUINO_AVR_LEONARDO
//interrupt number of uno and leonardo is 0
int pbIn = 3;
#else
int pbIn = 13;