Add support for Q-series on the ckled2001 LED driver (#16051)
This commit is contained in:
parent
3f7da15bba
commit
cad8866db1
1 changed files with 10 additions and 1 deletions
|
@ -125,8 +125,17 @@ void CKLED2001_init(uint8_t addr) {
|
||||||
// Set CURRENT PAGE (Page 4)
|
// Set CURRENT PAGE (Page 4)
|
||||||
CKLED2001_write_register(addr, CONFIGURE_CMD_PAGE, CURRENT_TUNE_PAGE);
|
CKLED2001_write_register(addr, CONFIGURE_CMD_PAGE, CURRENT_TUNE_PAGE);
|
||||||
for (int i = 0; i < LED_CURRENT_TUNE_LENGTH; i++) {
|
for (int i = 0; i < LED_CURRENT_TUNE_LENGTH; i++) {
|
||||||
|
switch (i) {
|
||||||
|
case 2:
|
||||||
|
case 5:
|
||||||
|
case 8:
|
||||||
|
case 11:
|
||||||
|
CKLED2001_write_register(addr, i, 0xA0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
CKLED2001_write_register(addr, i, 0xFF);
|
CKLED2001_write_register(addr, i, 0xFF);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Enable LEDs ON/OFF
|
// Enable LEDs ON/OFF
|
||||||
CKLED2001_write_register(addr, CONFIGURE_CMD_PAGE, LED_CONTROL_PAGE);
|
CKLED2001_write_register(addr, CONFIGURE_CMD_PAGE, LED_CONTROL_PAGE);
|
||||||
|
|
Loading…
Reference in a new issue