color9 2.0.0.0

Topics

 Main Control Bits
 
 LS_MEAS_RATE bits
 
 LS_GAIN bits
 
 INT Configuration
 
 INT Persistence
 
 LS_THRES_VAR
 
 MikroBUS
 
 Error Code
 

Macros

#define COLOR9_SLAVE_ADDR   0x52
 
#define COLOR9_MAIN_CTRL   0x00
 
#define COLOR9_LS_MEAS_RATE   0x04
 
#define COLOR9_LS_GAIN   0x05
 
#define COLOR9_PART_ID   0x06
 
#define COLOR9_MAIN_STATUS   0x07
 
#define COLOR9_LS_DATA_IR_0   0x0A
 
#define COLOR9_LS_DATA_IR_1   0x0B
 
#define COLOR9_LS_DATA_IR_2   0x0C
 
#define COLOR9_LS_DATA_GREEN_0   0x0D
 
#define COLOR9_LS_DATA_GREEN_1   0x0E
 
#define COLOR9_LS_DATA_GREEN_2   0x0F
 
#define COLOR9_LS_DATA_BLUE_0   0x10
 
#define COLOR9_LS_DATA_BLUE_1   0x11
 
#define COLOR9_LS_DATA_BLUE_2   0x12
 
#define COLOR9_LS_DATA_RED_0   0x13
 
#define COLOR9_LS_DATA_RED_1   0x14
 
#define COLOR9_LS_DATA_RED_2   0x15
 
#define COLOR9_INT_CFG   0x19
 
#define COLOR9_INT_PERSISTENCE   0x1A
 
#define COLOR9_LS_THRES_UP_0   0x21
 
#define COLOR9_LS_THRES_UP_1   0x22
 
#define COLOR9_LS_THRES_UP_2   0x23
 
#define COLOR9_LS_THRES_LOW_0   0x24
 
#define COLOR9_LS_THRES_LOW_1   0x25
 
#define COLOR9_LS_THRES_LOW_2   0x26
 
#define COLOR9_LS_THRES_VAR   0x27
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ COLOR9_INT_CFG

#define COLOR9_INT_CFG   0x19

◆ COLOR9_INT_PERSISTENCE

#define COLOR9_INT_PERSISTENCE   0x1A

◆ COLOR9_LS_DATA_BLUE_0

#define COLOR9_LS_DATA_BLUE_0   0x10

◆ COLOR9_LS_DATA_BLUE_1

#define COLOR9_LS_DATA_BLUE_1   0x11

◆ COLOR9_LS_DATA_BLUE_2

#define COLOR9_LS_DATA_BLUE_2   0x12

◆ COLOR9_LS_DATA_GREEN_0

#define COLOR9_LS_DATA_GREEN_0   0x0D

◆ COLOR9_LS_DATA_GREEN_1

#define COLOR9_LS_DATA_GREEN_1   0x0E

◆ COLOR9_LS_DATA_GREEN_2

#define COLOR9_LS_DATA_GREEN_2   0x0F

◆ COLOR9_LS_DATA_IR_0

#define COLOR9_LS_DATA_IR_0   0x0A

◆ COLOR9_LS_DATA_IR_1

#define COLOR9_LS_DATA_IR_1   0x0B

◆ COLOR9_LS_DATA_IR_2

#define COLOR9_LS_DATA_IR_2   0x0C

◆ COLOR9_LS_DATA_RED_0

#define COLOR9_LS_DATA_RED_0   0x13

◆ COLOR9_LS_DATA_RED_1

#define COLOR9_LS_DATA_RED_1   0x14

◆ COLOR9_LS_DATA_RED_2

#define COLOR9_LS_DATA_RED_2   0x15

◆ COLOR9_LS_GAIN

#define COLOR9_LS_GAIN   0x05

◆ COLOR9_LS_MEAS_RATE

#define COLOR9_LS_MEAS_RATE   0x04

◆ COLOR9_LS_THRES_LOW_0

#define COLOR9_LS_THRES_LOW_0   0x24

◆ COLOR9_LS_THRES_LOW_1

#define COLOR9_LS_THRES_LOW_1   0x25

◆ COLOR9_LS_THRES_LOW_2

#define COLOR9_LS_THRES_LOW_2   0x26

◆ COLOR9_LS_THRES_UP_0

#define COLOR9_LS_THRES_UP_0   0x21

◆ COLOR9_LS_THRES_UP_1

#define COLOR9_LS_THRES_UP_1   0x22

◆ COLOR9_LS_THRES_UP_2

#define COLOR9_LS_THRES_UP_2   0x23

◆ COLOR9_LS_THRES_VAR

#define COLOR9_LS_THRES_VAR   0x27

◆ COLOR9_MAIN_CTRL

#define COLOR9_MAIN_CTRL   0x00

◆ COLOR9_MAIN_STATUS

#define COLOR9_MAIN_STATUS   0x07

◆ COLOR9_PART_ID

#define COLOR9_PART_ID   0x06

◆ COLOR9_SLAVE_ADDR

#define COLOR9_SLAVE_ADDR   0x52