Owner manual
AFL2-W19A/AB-H61
Page 29
2.4.3 Structures
2.4.3.1 _LED_COLOR_INFO
Syntax: typedef struct _LED_COLOR_INFO{
LED_INFO LED_Info;
int R_LEVEL;
int G_LEVEL;
int B_LEVEL;
}LED_COLOR_INFO, *PLED_COLOR_INFO;
Parameters:
R_LEVEL
、
G_LEVEL
、
B_LEVEL [int] - Store the Brightness Level information for
R, G and B LED. The brightness level was from 0 to 7.
LED_Info [structure] - The LED IC address was stored in Main_Addr on the I2c
bus, and LED List number are stored in R_LN
、
G_LN and B_LN parameters
:
typedef struct _LED_INFO {
UCHAR Main_Addr; //Main address
UCHAR R_LN; //Red list number
UCHAR G_LN; //Green list number
UCHAR B_LN; //Blue list number
} LED_INFO, *PLED_INFO;
Remarks: This structure has included essential information to set LED IC.
2.4.3.2 _LED_BLNK_SET
Syntax: typedef struct _LED_BLNK_SET{
UCHAR Main_Addr; //Main address
BYTE BLNK_DutCyc; //Duty Cycle
BYTE BLNK_Freq; //Blinking Frequency
}LED_BLNK_SET, *PLED_BLNK_SET;
Parameters:
Main_Addr [UCHAR] - IC Address on I2C bus.
BLNK_DutCyc [BYTE] - Duty Cycle of LED blinking. Duty cycle = (0
~ 255)/256 = x%。
BLNK_Freq [BYTE] -Frequency of LED blinking. 0x00 = (41ms,