:14.232KB : :1 :2022-10-06 17:24:07
ADXL345 Arduino实例程序如果开发者对于本文件有需要的可以参考。
【核心代码】#include "Arduino.h"
#include "ADXL345.h"
#include
#define ADXL345_DEVICE (0x53) // ADXL345 device address
#define ADXL345_TO_READ (6) // num of bytes we are going to read each time (two bytes for each axis)
ADXL345::ADXL345() {
status = ADXL345_OK;
error_code = ADXL345_NO_ERROR;
gains[0] = 0.00376390;
gains[1] = 0.00376009;
gains[2] = 0.00349265;
}