diff options
Diffstat (limited to 'keyboards/keychron/q5_pro/iso_encoder')
4 files changed, 10 insertions, 5 deletions
diff --git a/keyboards/keychron/q5_pro/iso_encoder/config.h b/keyboards/keychron/q5_pro/iso_encoder/config.h index 53360a5e33..5a1edc3bd8 100755 --- a/keyboards/keychron/q5_pro/iso_encoder/config.h +++ b/keyboards/keychron/q5_pro/iso_encoder/config.h @@ -21,6 +21,8 @@ # define DRIVER_COUNT 2 # define DRIVER_ADDR_1 0b1110111 # define DRIVER_ADDR_2 0b1110100 + +/* RGB Matrix Configuration */ # define DRIVER_1_LED_TOTAL 55 # define DRIVER_2_LED_TOTAL 47 # define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) @@ -34,16 +36,18 @@ /* Turn off backllit if brightness value is low */ # define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 48 -/* Indication led */ +/* Indication led index */ # define NUM_LOCK_INDEX 32 # define CAPS_LOCK_INDEX 54 # define LOW_BAT_IND_INDEX 93 +// RGB Matrix Animation modes. Explicitly enabled +// For full list of effects, see: +// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects # define RGB_MATRIX_FRAMEBUFFER_EFFECTS # define RGB_MATRIX_KEYPRESSES /* Set LED driver current */ # define CKLED2001_CURRENT_TUNE \ - { 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28 } - + { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30 } #endif diff --git a/keyboards/keychron/q5_pro/iso_encoder/iso_encoder.c b/keyboards/keychron/q5_pro/iso_encoder/iso_encoder.c index 134bc54ce2..fc24e29a54 100755 --- a/keyboards/keychron/q5_pro/iso_encoder/iso_encoder.c +++ b/keyboards/keychron/q5_pro/iso_encoder/iso_encoder.c @@ -42,6 +42,7 @@ const ckled2001_led g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = { {0, L_5, J_5, K_5}, {0, L_6, J_6, K_6}, {0, L_7, J_7, K_7}, + // {0, L_8, J_8, K_8}, // Knob {0, C_1, A_1, B_1}, {0, C_2, A_2, B_2}, diff --git a/keyboards/keychron/q5_pro/iso_encoder/keymaps/default/keymap.c b/keyboards/keychron/q5_pro/iso_encoder/keymaps/default/keymap.c index 5e6999aa95..b72f63536a 100755 --- a/keyboards/keychron/q5_pro/iso_encoder/keymaps/default/keymap.c +++ b/keyboards/keychron/q5_pro/iso_encoder/keymaps/default/keymap.c @@ -16,7 +16,6 @@ #include QMK_KEYBOARD_H -// clang-format off enum layers{ MAC_BASE, MAC_FN, @@ -24,6 +23,7 @@ enum layers{ WIN_FN, }; +// clang-format off const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_103_iso( KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_F13, KC_F14, KC_F15, KC_MUTE, diff --git a/keyboards/keychron/q5_pro/iso_encoder/keymaps/via/keymap.c b/keyboards/keychron/q5_pro/iso_encoder/keymaps/via/keymap.c index 895d4d1e85..88e16e042b 100755 --- a/keyboards/keychron/q5_pro/iso_encoder/keymaps/via/keymap.c +++ b/keyboards/keychron/q5_pro/iso_encoder/keymaps/via/keymap.c @@ -16,7 +16,6 @@ #include QMK_KEYBOARD_H -// clang-format off enum layers{ MAC_BASE, MAC_FN, @@ -24,6 +23,7 @@ enum layers{ WIN_FN, }; +// clang-format off const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_103_iso( KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_F13, KC_F14, KC_F15, KC_MUTE, |