Browse Source

Fixup keychron/q6 (#19066)

pull/19072/head
jack 1 year ago
committed by GitHub
parent
commit
7901ba431a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 9 deletions
  1. +1
    -1
      keyboards/keychron/q6/ansi/ansi.c
  2. +1
    -1
      keyboards/keychron/q6/ansi/config.h
  3. +1
    -1
      keyboards/keychron/q6/ansi_encoder/ansi_encoder.c
  4. +1
    -1
      keyboards/keychron/q6/ansi_encoder/config.h
  5. +1
    -1
      keyboards/keychron/q6/iso/config.h
  6. +1
    -1
      keyboards/keychron/q6/iso/iso.c
  7. +1
    -1
      keyboards/keychron/q6/iso_encoder/config.h
  8. +1
    -1
      keyboards/keychron/q6/iso_encoder/iso_encoder.c
  9. +5
    -1
      keyboards/keychron/q6/q6.c

+ 1
- 1
keyboards/keychron/q6/ansi/ansi.c View File

@ -20,7 +20,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = {
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location


+ 1
- 1
keyboards/keychron/q6/ansi/config.h View File

@ -27,7 +27,7 @@
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 60
#define DRIVER_2_LED_TOTAL 48
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Enable caps-lock LED*/
#define CAPS_LOCK_LED_INDEX 61


+ 1
- 1
keyboards/keychron/q6/ansi_encoder/ansi_encoder.c View File

@ -20,7 +20,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = {
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location


+ 1
- 1
keyboards/keychron/q6/ansi_encoder/config.h View File

@ -28,7 +28,7 @@
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 60
#define DRIVER_2_LED_TOTAL 48
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Encoder Configuration */
#define ENCODERS_PAD_A { C14 }


+ 1
- 1
keyboards/keychron/q6/iso/config.h View File

@ -27,7 +27,7 @@
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 60
#define DRIVER_2_LED_TOTAL 49
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Enable caps-lock LED*/
#define CAPS_LOCK_LED_INDEX 60


+ 1
- 1
keyboards/keychron/q6/iso/iso.c View File

@ -20,7 +20,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = {
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location


+ 1
- 1
keyboards/keychron/q6/iso_encoder/config.h View File

@ -28,7 +28,7 @@
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 60
#define DRIVER_2_LED_TOTAL 49
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Encoder Configuration */
#define ENCODERS_PAD_A { C14 }


+ 1
- 1
keyboards/keychron/q6/iso_encoder/iso_encoder.c View File

@ -20,7 +20,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = {
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location


+ 5
- 1
keyboards/keychron/q6/q6.c View File

@ -67,7 +67,10 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return true;
}
__attribute__((weak)) void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
return false;
}
// RGB_MATRIX_INDICATOR_SET_COLOR(index, red, green, blue);
# if defined(CAPS_LOCK_LED_INDEX)
if (host_keyboard_led_state().caps_lock) {
@ -87,6 +90,7 @@ __attribute__((weak)) void rgb_matrix_indicators_advanced_user(uint8_t led_min,
}
}
# endif // NUM_LOCK_LED_INDEX
return true;
}
#endif // RGB_MATRIX_ENABLE...

Loading…
Cancel
Save