summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k6_pro/ansi/rgb/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/k6_pro/ansi/rgb/config.h')
-rw-r--r--keyboards/keychron/k6_pro/ansi/rgb/config.h17
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