-
-
Save IvanLi-CN/43ced0f389dc1757f79e005a1ec32bea to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------- 描述 默认值 | |
#define APDS_9930_REG_ENABLE 0x00 // 状态和中断的启用 0x00 | |
#define APDS_9930_REG_ATIME 0x01 // ALS ADC 时间 0xff | |
#define APDS_9930_REG_PTIME 0x02 // Proximity ADC 时间 0xff | |
#define APDS_9930_REG_WTIME 0x03 // Wait 时间 0xff | |
#define APDS_9930_REG_PPULSE 0x0e // Proximity 脉冲计数 0x00 | |
#define APDS_9930_REG_CONTROL 0x0f // 增益控制 0x00 | |
#define APDS_9930_REG_Ch0DATAL 0x14 // Ch0 ADC Low data 0x00 | |
#define APDS_9930_REG_Ch0DATAH 0x15 // Ch0 ADC High data 0x00 | |
#define APDS_9930_REG_Ch1DATAL 0x16 // Ch1 ADC Low data 0x00 | |
#define APDS_9930_REG_Ch1DATAH 0x17 // Ch1 ADC High data 0x00 | |
#define APDS_9930_REG_PDATAL 0x18 // Proximity ADC Low data 0x00 | |
#define APDS_9930_REG_PDATAH 0x19 // Proximity ADC High data 0x00 | |
#define APDS_9930_REG_OFFSET 0x1e // Proximity 偏移 -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment