diff options
author | lokher <lokher@gmail.com> | 2022-12-06 17:10:48 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-07 15:50:49 +0800 |
commit | a336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch) | |
tree | 3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/keychron/k6_pro/ansi/rgb/config.h | |
parent | 27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff) |
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/keychron/k6_pro/ansi/rgb/config.h')
-rw-r--r-- | keyboards/keychron/k6_pro/ansi/rgb/config.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/keyboards/keychron/k6_pro/ansi/rgb/config.h b/keyboards/keychron/k6_pro/ansi/rgb/config.h index 26b0a0cf18..ca3a8cefd2 100644 --- a/keyboards/keychron/k6_pro/ansi/rgb/config.h +++ b/keyboards/keychron/k6_pro/ansi/rgb/config.h @@ -20,17 +20,21 @@ # define DRIVER_ADDR_1 0b1110111 # define DRIVER_ADDR_2 0b1110100 -# define DRIVER_1_LED_TOTAL 30 -# define DRIVER_2_LED_TOTAL 38 -# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) +# define DRIVER_1_LED_COUNT 30 +# define DRIVER_2_LED_COUNT 38 +# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_COUNT + DRIVER_2_LED_COUNT) -/* Set to infinit, which is use in USB mode by default */ -#define RGB_DISABLE_TIMEOUT RGB_DISABLE_TIME_INFINITE +/* Set to infinit, which is use in USB mode by default + */ +#define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE /* Allow shutdown of led driver to save power */ # define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE /* Turn off backlight on low brightness to save power */ # define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 32 +# define DIM_CAPS_LOCK +# define CAPS_LOCK_INDEX 30 + # ifdef VIA_ENABLE # define VIA_QMK_RGBLIGHT_ENABLE # endif @@ -94,7 +98,4 @@ /* Set LED driver current */ # define CKLED2001_CURRENT_TUNE {0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38} -# define DIM_CAPS_LOCK -# define CAPS_LOCK_INDEX 30 - #endif |