金牌会员
- 积分
- 1007
- 金钱
- 1007
- 注册时间
- 2016-8-1
- 在线时间
- 157 小时
|
1金钱
原子哥 我用咱的加速度传感器的例程添加到NRF51822里需要把ADXL345.h文件里的宏定义去掉吗 如下:#define DEVICE_ID 0X00 //Æ÷¼þID,0XE5
#define THRESH_TAP 0X1D //Çû÷·§Öµ
#define OFSX 0X1E
#define OFSY 0X1F
#define OFSZ 0X20
#define DUR 0X21
#define Latent 0X22
#define Window 0X23
#define THRESH_ACK 0X24
#define THRESH_INACT 0X25
#define TIME_INACT 0X26
#define ACT_INACT_CTL 0X27
#define THRESH_FF 0X28
#define TIME_FF 0X29
#define TAP_AXES 0X2A
#define ACT_TAP_STATUS 0X2B
#define BW_RATE 0X2C
#define POWER_CTL 0X2D
#define INT_ENABLE 0X2E
#define INT_MAP 0X2F
#define INT_SOURCE 0X30
#define DATA_FORMAT 0X31
#define DATA_X0 0X32
#define DATA_X1 0X33
#define DATA_Y0 0X34
#define DATA_Y1 0X35
#define DATA_Z0 0X36
#define DATA_Z1 0X37
#define FIFO_CTL 0X38
#define FIFO_STATUS 0X39 还有就是电路硬件连接是一致的,另外.C文件的函数不用改吧?
|
|