From 093ea22832cf9ab16715d93e77cc26418a60672f Mon Sep 17 00:00:00 2001 From: lokher Date: Wed, 14 Dec 2022 15:46:29 +0800 Subject: Add k2_pro; Change LED_MATRIX_VAL_STEP to 16; Fix incorrect payload len in ckbt51.c --- keyboards/keychron/k6_pro/ansi/rgb/config.h | 2 ++ keyboards/keychron/k6_pro/ansi/white/config.h | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'keyboards/keychron/k6_pro') diff --git a/keyboards/keychron/k6_pro/ansi/rgb/config.h b/keyboards/keychron/k6_pro/ansi/rgb/config.h index ca3a8cefd2..b3c4220b3b 100644 --- a/keyboards/keychron/k6_pro/ansi/rgb/config.h +++ b/keyboards/keychron/k6_pro/ansi/rgb/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #ifdef RGB_MATRIX_ENABLE /* RGB Matrix driver configuration */ # define DRIVER_COUNT 2 diff --git a/keyboards/keychron/k6_pro/ansi/white/config.h b/keyboards/keychron/k6_pro/ansi/white/config.h index d3b9f26b5f..c61f1ae780 100644 --- a/keyboards/keychron/k6_pro/ansi/white/config.h +++ b/keyboards/keychron/k6_pro/ansi/white/config.h @@ -14,11 +14,13 @@ * along with this program. If not, see . */ +#pragma once + #ifdef LED_MATRIX_ENABLE /* LED matrix driver configuration */ # define DRIVER_COUNT 1 # define DRIVER_ADDR_1 0b1110100 -# define LED_MATRIX_LED_COUNT 68 +# define LED_MATRIX_LED_COUNT 84 /* Set to infinit, which is use in USB mode by default */ # define LED_MATRIX_TIMEOUT LED_MATRIX_TIMEOUT_INFINITE @@ -27,6 +29,10 @@ /* Turn off backlight on low brightness to save power */ # define LED_MATRIX_BRIGHTNESS_TURN_OFF_VAL 32 + +# define DIM_CAPS_LOCK +# define CAPS_LOCK_INDEX 46 + /* LED Matrix Animation modes. Explicitly enabled * For full list of effects, see: * https://docs.qmk.fm/#/feature_led_matrix?id=led-matrix-effects @@ -65,7 +71,4 @@ /* Set LED driver current */ # define CKLED2001_CURRENT_TUNE { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60 } -# define DIM_CAPS_LOCK -# define CAPS_LOCK_INDEX 30 - #endif -- cgit v1.2.3