summaryrefslogtreecommitdiff
path: root/drivers/led
diff options
context:
space:
mode:
authorVino Rodrigues <366673+vinorodrigues@users.noreply.github.com>2022-01-31 05:56:54 +1100
committerGitHub <noreply@github.com>2022-01-30 10:56:54 -0800
commitcad8866db1fce8c6e5d2beca779e779abb1d7369 (patch)
tree8260af1b1caedfb7f6951ee3b1376e59d23dcb86 /drivers/led
parent3f7da15bbac555702bdb9877a4937cd292db6b7b (diff)
downloadqmk_firmware-cad8866db1fce8c6e5d2beca779e779abb1d7369.tar.gz
qmk_firmware-cad8866db1fce8c6e5d2beca779e779abb1d7369.zip
Add support for Q-series on the ckled2001 LED driver (#16051)
Diffstat (limited to 'drivers/led')
-rw-r--r--drivers/led/ckled2001.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/led/ckled2001.c b/drivers/led/ckled2001.c
index 990e50cb60..8d71805a24 100644
--- a/drivers/led/ckled2001.c
+++ b/drivers/led/ckled2001.c
@@ -125,7 +125,16 @@ void CKLED2001_init(uint8_t addr) {
// Set CURRENT PAGE (Page 4)
CKLED2001_write_register(addr, CONFIGURE_CMD_PAGE, CURRENT_TUNE_PAGE);
for (int i = 0; i < LED_CURRENT_TUNE_LENGTH; i++) {
- CKLED2001_write_register(addr, i, 0xFF);
+ switch (i) {
+ case 2:
+ case 5:
+ case 8:
+ case 11:
+ CKLED2001_write_register(addr, i, 0xA0);
+ break;
+ default:
+ CKLED2001_write_register(addr, i, 0xFF);
+ }
}
// Enable LEDs ON/OFF